« Previous | Next » 

Revision 5126a8ec

ID5126a8ecbbb6981ac29f437f1d35f5248c8f234d
Parent fa14610d
Child 2800e8d6

Added by Marton Balint over 9 years ago

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 <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences