mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 21:01:14 +00:00
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:
parent
25b41829b9
commit
e2dd913f4c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue