Commit 577525af authored by Sebastian Dröge's avatar Sebastian Dröge

ffmpegenc: Also add FF_MIN_BUFFER_SIZE to video buffers too

Just to make sure we never get below it in case of very small videos.
parent d9f6febe
......@@ -643,7 +643,8 @@ static void
ffmpegenc_setup_working_buf (GstFFMpegEnc * ffmpegenc)
{
guint wanted_size =
ffmpegenc->context->width * ffmpegenc->context->height * 6 + 200;
ffmpegenc->context->width * ffmpegenc->context->height * 6 +
FF_MIN_BUFFER_SIZE;
/* Above is the buffer size used by ffmpeg/ffmpeg.c */
......
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