avimux: calculate suggested buffer size
Calculate the suggested buffer size based on the largest chunk in the file. See #597847
This commit is contained in:
parent
b134ca31fa
commit
df0335e65b
@ -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);
|
||||
|
||||
avimux->total_frames++;
|
||||
|
||||
if (avimux->is_bigfile) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user