diff options
author | Marton Balint <cus@passwd.hu> | 2011-02-20 01:18:30 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-03-11 13:05:46 +0100 |
commit | 5126a8ecbbb6981ac29f437f1d35f5248c8f234d (patch) | |
tree | 01a141b5b9ddd40a59c634446c4b3aecea1f7125 /libavutil | |
parent | fa14610df5e21fd562922a5622daf42f746df978 (diff) | |
download | ffmpeg-5126a8ecbbb6981ac29f437f1d35f5248c8f234d.tar.gz |
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>
Diffstat (limited to 'libavutil')
0 files changed, 0 insertions, 0 deletions