Marton Balint
2c71581698
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 <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-12 18:02:27 +02:00
..
2011-04-23 00:27:10 +03:00
2011-05-12 11:41:59 +02:00
2011-05-12 11:41:59 +02:00
2011-04-15 18:02:05 +02:00
2011-05-03 22:36:08 -04:00
2011-04-06 14:10:08 +02:00
2011-04-21 14:13:09 +03:00
2011-04-24 23:26:45 -07:00
2011-04-12 19:17:05 +02:00
2011-05-12 11:41:59 +02:00
2011-04-28 23:28:17 +03:00
2011-04-19 19:47:58 +02:00
2011-04-08 11:08:26 +02:00
2011-04-24 21:30:03 +03:00
2011-04-09 17:32:09 -07:00
2011-04-14 13:56:09 +02:00
2011-04-08 20:58:19 +02:00
2011-04-29 20:00:53 +02:00
2011-05-04 21:12:42 +02:00
2011-04-18 18:23:16 +02:00
2011-04-12 23:08:55 +03:00
2011-04-20 14:59:45 +03:00
2011-05-02 12:18:44 +02:00
2011-05-10 20:22:06 +02:00
2011-04-08 15:59:19 +02:00
2011-04-15 18:02:05 +02:00
2011-04-19 19:48:07 +02:00
2011-04-19 18:28:38 +02:00
2011-04-15 18:02:05 +02:00
2011-05-12 15:52:25 +02:00
2011-04-06 14:10:08 +02:00
2011-04-19 19:47:58 +02:00
2011-04-06 14:10:08 +02:00
2011-05-04 21:12:40 +02:00
2011-04-19 19:47:58 +02:00
2011-05-12 13:08:30 +02:00
2011-04-19 19:47:58 +02:00
2011-04-19 18:28:38 +02:00
2011-04-19 18:28:38 +02:00
2011-04-19 18:28:38 +02:00
2011-04-08 15:59:19 +02:00
2011-04-19 19:47:58 +02:00
2011-04-19 19:47:58 +02:00
2011-05-12 15:52:25 +02:00
2011-05-12 13:07:21 +02:00
2011-05-10 20:22:06 +02:00
2011-04-29 17:27:01 +02:00
2011-04-29 17:27:01 +02:00
2011-05-12 13:04:58 +02:00
2011-05-10 20:22:06 +02:00
2011-04-17 19:31:49 +02:00
2011-04-28 10:28:51 +03:00
2011-05-12 11:32:39 +02:00
2011-04-28 07:25:28 +02:00
2011-04-19 18:28:38 +02:00
2011-05-03 22:29:19 -04:00
2011-05-12 13:34:20 +02:00
2011-04-15 11:45:03 +02:00
2011-04-17 19:31:49 +02:00
2011-04-22 20:12:39 +02:00
2011-05-10 20:22:06 +02:00
2011-05-12 11:41:59 +02:00
2011-04-24 00:05:38 +03:00
2011-04-19 19:47:58 +02:00
2011-04-24 00:05:37 +03:00
2011-05-03 11:51:55 +02:00
2011-04-14 13:56:09 +02:00
2011-04-29 17:27:01 +02:00
2011-04-04 17:45:20 +02:00
2011-04-08 15:59:19 +02:00
2011-04-19 19:47:58 +02:00
2011-04-24 00:05:37 +03:00
2011-04-24 00:05:37 +03:00
2011-04-24 00:05:37 +03:00
2011-04-24 00:05:37 +03:00
2011-04-24 00:05:37 +03:00
2011-04-24 00:05:37 +03:00
2011-04-24 00:05:37 +03:00
2011-04-24 00:05:37 +03:00
2011-04-24 00:05:37 +03:00
2011-04-24 00:05:37 +03:00
2011-04-24 00:05:37 +03:00
2011-05-12 11:41:59 +02:00
2011-04-24 00:05:37 +03:00
2011-04-08 15:59:19 +02:00
2011-05-09 19:14:37 +03:00
2011-05-11 10:42:34 +03:00
2011-05-11 10:42:34 +03:00
2011-05-11 10:42:34 +03:00
2011-04-08 16:45:40 +02:00
2011-04-19 19:47:58 +02:00
2011-04-19 19:47:58 +02:00
2011-04-08 16:45:41 +02:00
2011-05-10 20:22:06 +02:00
2011-04-20 14:59:45 +03:00
2011-04-11 14:18:48 +02:00
2011-05-12 11:41:59 +02:00
2011-04-13 07:38:15 +02:00
2011-05-12 18:02:27 +02:00
2011-04-24 00:05:38 +03:00
2011-04-14 13:56:09 +02:00
2011-04-14 13:56:09 +02:00
2011-04-15 13:28:04 +02:00