summaryrefslogtreecommitdiff
path: root/ffmpeg_opt.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-07-01 22:19:53 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-07-01 22:43:26 +0200
commit52c5521877aaba1a8effdb5e4924b0897060bd21 (patch)
treed0ecea3b2b84904f5e4cc25e5fb93942e24d41c2 /ffmpeg_opt.c
parent5165c600ebea9a9478ade61108f14be1f334535d (diff)
ffmpeg_opt: Favor streams that had packets
Fixes Thailand-Wave.wmv without explicitly specifying a stream Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg_opt.c')
-rw-r--r--ffmpeg_opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index 5c2bd48869..048c3df944 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -1919,7 +1919,7 @@ static int open_output_file(OptionsContext *o, const char *filename)
for (i = 0; i < nb_input_streams; i++) {
int new_area;
ist = input_streams[i];
- new_area = ist->st->codec->width * ist->st->codec->height;
+ new_area = ist->st->codec->width * ist->st->codec->height + 100000000*!!ist->st->codec_info_nb_frames;
if((qcr!=MKTAG('A', 'P', 'I', 'C')) && (ist->st->disposition & AV_DISPOSITION_ATTACHED_PIC))
new_area = 1;
if (ist->st->codec->codec_type == AVMEDIA_TYPE_VIDEO &&