ffenc: make the output buffer big enough

The ffmpeg docs say that the output buffer should at least be
FF_MIN_BUFFER_SIZE (which is overly large, but anyways).
This commit is contained in:
Wim Taymans 2009-05-13 11:21:13 +02:00
parent 25b41829b9
commit e2dd913f4c

View file

@ -837,7 +837,7 @@ gst_ffmpegenc_chain_audio (GstPad * pad, GstBuffer * inbuf)
timestamp += duration;
/* 4 times the input size should be big enough... */
out_size = frame_bytes * 4;
out_size = MAX (frame_bytes * 4, FF_MIN_BUFFER_SIZE);
ret = gst_ffmpegenc_encode_audio (ffmpegenc, inbuf, out_size,
ffmpegenc->discont);