aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2011-04-01 23:11:52 +1100
committerPeter Ross <pross@xvid.org>2011-04-01 23:11:54 +1100
commit6408529b5d5e8564312ed1b70c0db5a9bc8ea9d5 (patch)
tree0b1dd30efb63c378c9be8c1553fd560500f5addb
parentc178fdeaecf442e6aa88ce1c5ec6db189823805e (diff)
downloadffmpeg-6408529b5d5e8564312ed1b70c0db5a9bc8ea9d5.tar.gz
Increase ffmpeg video encoding buffer size to permit encoding of DPX images
The header generated by the DPX encoder is 1664 bytes.
-rw-r--r--ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 285b7255d4..4c7ba5ba9b 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2300,8 +2300,9 @@ static int transcode(AVFormatContext **output_files,
}
}
if(codec->codec_type == AVMEDIA_TYPE_VIDEO){
+ /* maximum video buffer size is 6-bytes per pixel, plus DPX header size */
int size= codec->width * codec->height;
- bit_buffer_size= FFMAX(bit_buffer_size, 6*size + 200);
+ bit_buffer_size= FFMAX(bit_buffer_size, 6*size + 1664);
}
}