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

Baptiste Coudurier baptiste.coudurier
Tue Jun 23 20:17:02 CEST 2009


Reimar D?ffinger wrote:
> Hello,
> currently the MOV demuxer does not even keep track of the "current"
> position of streams set to AVDISCARD_ALL.
> This means that when removing AVDISCARD_ALL, that stream will start
> playing from the beginning.
> Now, the current behaviour may be valid, but it is at least inconsistent
> with most other demuxers, and at least with the current seeking API I
> can not see how else it should be possible to seamlessly switch between
> e.g. different audio streams.
> Since it duplicates code, attached patch is hardly acceptable, but it
> fixes the issue...

Just do like the stream wasn't discarded, just don't read the sample,
and retry. It should avoid code duplication I think.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-devel mailing list