mirror of https://github.com/FFmpeg/FFmpeg.git
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>pull/2/head
parent
6b35a795f8
commit
2c71581698
1 changed files with 5 additions and 4 deletions
Loading…
Reference in new issue