Commit df0335e6 authored by Wim Taymans's avatar Wim Taymans
Browse files

avimux: calculate suggested buffer size

Calculate the suggested buffer size based on the largest chunk in the file.

See #597847
parent b134ca31
......@@ -1803,6 +1803,10 @@ gst_avi_mux_do_buffer (GstAviMux * avimux, GstAviPad * avipad)
if (avipad->is_video) {
/* the suggested buffer size is the max frame size */
if (avipad->hdr.bufsize < GST_BUFFER_SIZE (data))
avipad->hdr.bufsize = GST_BUFFER_SIZE (data);
if (avimux->is_bigfile) {
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