summaryrefslogtreecommitdiffstats
path: root/libavcodec/aaccoder.c
diff options
context:
space:
mode:
authorMarton Balint <[email protected]>2011-02-20 01:18:30 +0100
committerMichael Niedermayer <[email protected]>2011-03-11 13:05:46 +0100
commit5126a8ecbbb6981ac29f437f1d35f5248c8f234d (patch)
tree01a141b5b9ddd40a59c634446c4b3aecea1f7125 /libavcodec/aaccoder.c
parentfa14610df5e21fd562922a5622daf42f746df978 (diff)
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]>
Diffstat (limited to 'libavcodec/aaccoder.c')
0 files changed, 0 insertions, 0 deletions