[FFmpeg-cvslog] Increase ffmpeg video encoding buffer size to permit encoding of DPX images
Peter Ross
git at videolan.org
Fri Apr 1 14:34:54 CEST 2011
ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Fri Apr 1 23:11:52 2011 +1100| [6408529b5d5e8564312ed1b70c0db5a9bc8ea9d5] | committer: Peter Ross
Increase ffmpeg video encoding buffer size to permit encoding of DPX images
The header generated by the DPX encoder is 1664 bytes.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6408529b5d5e8564312ed1b70c0db5a9bc8ea9d5
---
ffmpeg.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 285b725..4c7ba5b 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);
}
}
More information about the ffmpeg-cvslog
mailing list