mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
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
1 changed files with 4 additions and 0 deletions
|
@ -1803,6 +1803,10 @@ gst_avi_mux_do_buffer (GstAviMux * avimux, GstAviPad * avipad)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (avipad->is_video) {
|
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++;
|
avimux->total_frames++;
|
||||||
|
|
||||||
if (avimux->is_bigfile) {
|
if (avimux->is_bigfile) {
|
||||||
|
|
Loading…
Reference in a new issue