[FFmpeg-cvslog] lavf: fix av_find_best_stream when providing a wanted stream.

Michael Niedermayer michaelni at gmx.at
Fri May 13 20:26:31 CEST 2011


On Fri, May 13, 2011 at 08:09:45AM +0200, Nicolas George wrote:
> Le quartidi 24 floréal, an CCXIX, Marton Balint a écrit :
> > In the main loop, stream_number is incremented after checking the stream type,
> > so the search usually will not find the wanted stream.
> 
> How is it a fix? This was the intended behaviour: the number is counted
> among streams of a given type, starting at 0 for each. This is not a fix,
> this is an API change.

The streamindex in AVFormatContext and in program is different and
IIRC the code did not consider that

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-cvslog/attachments/20110513/bd13cbeb/attachment.asc>


More information about the ffmpeg-cvslog mailing list