summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2009-02-22 00:58:51 +0000
committerPeter Ross <pross@xvid.org>2009-02-22 00:58:51 +0000
commitbefb5cac310f3736cacde0212b02154b22d988b5 (patch)
treea536fc418f94f499f04d6979288bc0d93ef69052 /ffmpeg.c
parent001821904e316b68c42d1671dcf963e5f7c648f7 (diff)
Increase ffmpeg intermediate conversion buffer size to accomodate PPM/PNM header.
Originally committed as revision 17512 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 2b7408692a..1e764e552e 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1897,7 +1897,7 @@ static int av_encode(AVFormatContext **output_files,
}
if(codec->codec_type == CODEC_TYPE_VIDEO){
int size= codec->width * codec->height;
- bit_buffer_size= FFMAX(bit_buffer_size, 4*size);
+ bit_buffer_size= FFMAX(bit_buffer_size, 4*size + 200);
}
}