Re: [libav-devel] [PATCH 13/21] lavf: fix av_find_best_stream when providing a wanted stream.

2011-05-12 Thread Justin Ruggles
On 05/12/2011 01:56 AM, Anton Khirnov wrote: > From: Marton Balint > > 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,

[libav-devel] [PATCH 13/21] lavf: fix av_find_best_stream when providing a wanted stream.

2011-05-11 Thread Anton Khirnov
From: Marton Balint 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