diff options
author | Marton Balint <cus@passwd.hu> | 2011-02-20 01:18:30 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-05-12 18:02:27 +0200 |
commit | 2c7158169859eb2dd49a72337f9f3f28347da77a (patch) | |
tree | f860ab9f0a616b3c70d1a2ea1f98274b598db85e /libavcodec/mpegvideo.h | |
parent | 6b35a795f8ca34c92da8de81f7b20b2d47d71468 (diff) | |
download | ffmpeg-2c7158169859eb2dd49a72337f9f3f28347da77a.tar.gz |
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>
Diffstat (limited to 'libavcodec/mpegvideo.h')
0 files changed, 0 insertions, 0 deletions