Skip to content
Snippets Groups Projects
Commit 2c715816 authored by Marton Balint's avatar Marton Balint Committed by Anton Khirnov
Browse files

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: default avatarMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent 6b35a795
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment