summaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
authorMarton Balint <[email protected]>2011-02-20 01:18:30 +0100
committerAnton Khirnov <[email protected]>2011-05-12 18:02:27 +0200
commit2c7158169859eb2dd49a72337f9f3f28347da77a (patch)
treef860ab9f0a616b3c70d1a2ea1f98274b598db85e /doc/examples
parent6b35a795f8ca34c92da8de81f7b20b2d47d71468 (diff)
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 <[email protected]> Signed-off-by: Anton Khirnov <[email protected]>
Diffstat (limited to 'doc/examples')
0 files changed, 0 insertions, 0 deletions