ffmpeg/libavformat
Marton Balint 4bee03034b lavf: let av_find_best_stream use bitrate info if available
I guess the user expects to see the stream with the highest bitrate, not with
the most frames, this is especially useful for multi bitrate streams.

This patch changes av_find_best_stream to select the stream based on a number
of conditions, the first condition has the highest priority, the last condition
has the lowest:

1) Select the stream with the highest FFMIN(5, codec_info_nb_frames) value
2) Select the stream with the highest bitrate
3) Select the stream with the highest codec_info_nb_frames
4) Select the first stream

Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-11-18 13:57:08 +01:00
..
2012-08-30 05:17:24 +02:00
2012-10-26 01:52:40 +02:00
2012-11-17 19:30:08 +00:00
2012-11-03 05:35:35 +01:00
2012-09-28 02:40:53 +02:00
2012-11-11 22:58:56 +01:00
2012-11-18 12:29:05 +00:00
2012-08-18 17:45:58 +02:00
2012-10-19 21:46:39 +02:00
2012-10-26 15:34:25 +00:00
2012-11-12 10:33:18 -05:00
2012-10-18 00:55:03 +02:00
2012-10-26 03:12:45 +00:00
2012-10-10 15:50:32 +00:00
2012-11-08 15:54:14 +01:00
2012-10-19 23:21:41 +02:00
2012-10-19 23:00:47 +02:00
2012-10-19 23:24:03 +02:00
2012-10-24 22:15:31 +02:00
2012-07-06 17:08:22 +02:00
2012-10-27 02:06:21 +02:00
2012-10-28 15:10:28 +00:00
2012-11-18 12:09:20 +00:00
2012-10-25 20:57:40 +00:00
2012-11-17 19:30:04 +00:00
2012-11-17 19:30:08 +00:00
2012-10-29 22:11:21 +01:00
2012-10-07 23:31:27 +02:00
2012-10-20 20:20:39 +02:00
2012-11-05 00:28:21 +01:00
2012-11-13 13:25:19 +00:00
2012-11-10 13:16:14 +01:00
2012-08-28 22:29:20 +02:00
2012-11-08 16:06:04 +01:00
2012-11-11 18:32:46 +01:00
2012-11-17 19:58:54 +00:00
2012-10-27 23:03:07 +02:00
2012-10-10 13:09:26 +00:00
2012-10-15 08:12:25 +00:00
2012-08-29 00:05:03 +02:00
2012-11-17 19:30:08 +00:00
2012-11-04 04:46:10 +00:00
2012-10-30 21:48:39 +01:00
2012-11-12 10:33:23 -05:00
2012-11-06 15:52:33 +01:00
2012-11-13 20:02:43 +01:00
2012-11-09 17:18:01 +01:00