Skip to content

Commit

Permalink
ffmpeg_opt: Favor streams that had packets
Browse files Browse the repository at this point in the history
Fixes Thailand-Wave.wmv without explicitly specifying a stream

Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Jul 1, 2015
1 parent 5165c60 commit 52c5521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffmpeg_opt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 52c5521

Please sign in to comment.