Commit b59dc3e5 authored by Thiago Santos's avatar Thiago Santos
Browse files

avimux: also set the suggested buf size for audio

We were only setting the suggested buf size for video,
we can set it for audio as well.

This and 195e14529d80ef318ce3a778c1995efb11f266cd
fix an issue that prevented seeking on large avi files
on WMP (non-recent versions).
parent 831b1e95
......@@ -1959,11 +1959,11 @@ gst_avi_mux_do_buffer (GstAviMux * avimux, GstAviPad * avipad)
if (G_UNLIKELY (avipad->hook))
avipad->hook (avimux, avipad, data);
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);
/* 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 (avipad->is_video) {
avimux->total_frames++;
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