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:
Wim Taymans 2009-10-13 17:46:22 +02:00
parent b134ca31fa
commit df0335e65b

View file

@ -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) {