Commit de73ae6b authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: avoid apics for video output if possible

Fixes Ticket1714
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a7b48395
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment