« Previous | Next » 

Revision 2c715816

ID2c7158169859eb2dd49a72337f9f3f28347da77a
Parent 6b35a795
Child 4ad0693e

Added by Marton Balint about 9 years ago

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: Michael Niedermayer <>
Signed-off-by: Anton Khirnov <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences