[FFmpeg-devel] [PATCH] make stream-switching work with MOV demuxer

Ronald S. Bultje rsbultje
Tue Jun 23 21:29:56 CEST 2009


Hi,

On Tue, Jun 23, 2009 at 3:19 PM, Reimar D?ffinger
<Reimar.Doeffinger at gmx.de>wrote:

> On Tue, Jun 23, 2009 at 11:59:21AM -0700, Baptiste Coudurier wrote:
> > I think discard variable can be avoided by checking
> > s->streams[sc->ffindex]->discard.
> >
> > We could even declare AVStream *st = s->streams[sc->ffindex] when sample
> > is found and factore because it is already done when computing duration.
> >
> > We could even get rid of sc->ffindex by choosing AVStream in the loop
> > and use ->priv_data, but well that can be done separately.
>
> I think it is uglier, but here it is.


Why do you need it in multiple places? Isn't that redundant?

Ronald



More information about the ffmpeg-devel mailing list