summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-26 00:02:19 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-26 00:02:19 +0200
commitde73ae6b1a3ff0398988dc683f94ea07e3bb1372 (patch)
treea699972d44032bc42ed8d01b139ecd4638ab08a6
parenta7b483953d1ae433dc9d498ae77342a153539a08 (diff)
downloadffmpeg-streaming-de73ae6b1a3ff0398988dc683f94ea07e3bb1372.zip
ffmpeg-streaming-de73ae6b1a3ff0398988dc683f94ea07e3bb1372.tar.gz
ffmpeg: avoid apics for video output if possible
Fixes Ticket1714 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg_opt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index 076852d..3d73564 100644
--- a/ffmpeg_opt.c
+++ b/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))
OpenPOWER on IntegriCloud