[libav-devel] [PATCH 1/5] avconv: update InputStream.pts in the streamcopy case.

Anton Khirnov anton at khirnov.net
Tue Nov 29 11:05:17 CET 2011


On Tue, 29 Nov 2011 10:24:04 +0100, Luca Barbato <lu_zero at gentoo.org> wrote:
> On 29/11/11 09:03, Anton Khirnov wrote:
> > This was broken in 2a651b719c309c5e2fc663a5a9d6ca36153ab98f.
> > ---
> >   avconv.c |    1 +
> >   1 files changed, 1 insertions(+), 0 deletions(-)
> >
> > diff --git a/avconv.c b/avconv.c
> > index 4c5498a..067678d 100644
> > --- a/avconv.c
> > +++ b/avconv.c
> > @@ -1906,6 +1906,7 @@ static int output_packet(InputStream *ist,
> >       /* handle stream copy */
> >       if (!ist->decoding_needed) {
> >           rate_emu_sleep(ist);
> > +        ist->pts = ist->next_pts;
> >           switch (ist->st->codec->codec_type) {
> >           case AVMEDIA_TYPE_AUDIO:
> >               ist->next_pts += ((int64_t)AV_TIME_BASE * ist->st->codec->frame_size) /
> 
> Ok... Could we have a regression test for such case once we fixed more 
> ts related issues?
> 

That implies that it works reliably and someone actually understands
how. Both are false AFAIK.

-- 
Anton Khirnov


More information about the libav-devel mailing list