ffmpeg: avoid apics for video output if possible

Fixes Ticket1714

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
release/1.0
Michael Niedermayer 13 years ago
parent a7b483953d
commit de73ae6b1a
  1. 2
      ffmpeg_opt.c

@ -1499,6 +1499,8 @@ void opt_output_file(void *optctx, const char *filename)
int new_area;
ist = input_streams[i];
new_area = ist->st->codec->width * ist->st->codec->height;
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 &&
new_area > area) {
if((qcr==MKTAG('A', 'P', 'I', 'C')) && !(ist->st->disposition & AV_DISPOSITION_ATTACHED_PIC))

Loading…
Cancel
Save