1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00
FFmpeg/libavformat
Marton Balint 2c71581698 lavf: fix av_find_best_stream when providing a wanted stream.
In the main loop, stream_number is incremented after checking the stream type,
so the search usually will not find the wanted stream.

This patch eliminates the useless stream_number variable and introduces a new
one, called real_stream_index to store the real stream index of the current
stream, no matter if we are looping through all the streams or only the streams
of a program.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-12 18:02:27 +02:00
..
2011-04-18 18:23:16 +02:00
2011-04-08 15:59:19 +02:00
2011-04-19 19:48:07 +02:00
2011-04-19 18:28:38 +02:00
2011-05-12 15:52:25 +02:00
2011-04-19 18:28:38 +02:00
2011-04-08 15:59:19 +02:00
2011-05-12 15:52:25 +02:00
2011-04-19 18:28:38 +02:00
2011-05-03 22:29:19 -04:00
2011-05-12 13:34:20 +02:00
2011-05-03 11:51:55 +02:00
2011-04-04 17:45:20 +02:00
2011-04-08 15:59:19 +02:00
2011-04-08 15:59:19 +02:00
2011-05-09 19:14:37 +03:00
2011-04-13 07:38:15 +02:00
2011-04-24 00:05:38 +03:00