mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
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).
This commit is contained in:
parent
831b1e958a
commit
b59dc3e5fb
1 changed files with 4 additions and 4 deletions
|
@ -1959,11 +1959,11 @@ gst_avi_mux_do_buffer (GstAviMux * avimux, GstAviPad * avipad)
|
||||||
if (G_UNLIKELY (avipad->hook))
|
if (G_UNLIKELY (avipad->hook))
|
||||||
avipad->hook (avimux, avipad, data);
|
avipad->hook (avimux, avipad, data);
|
||||||
|
|
||||||
if (avipad->is_video) {
|
|
||||||
/* the suggested buffer size is the max frame size */
|
/* the suggested buffer size is the max frame size */
|
||||||
if (avipad->hdr.bufsize < GST_BUFFER_SIZE (data))
|
if (avipad->hdr.bufsize < GST_BUFFER_SIZE (data))
|
||||||
avipad->hdr.bufsize = GST_BUFFER_SIZE (data);
|
avipad->hdr.bufsize = GST_BUFFER_SIZE (data);
|
||||||
|
|
||||||
|
if (avipad->is_video) {
|
||||||
avimux->total_frames++;
|
avimux->total_frames++;
|
||||||
|
|
||||||
if (avimux->is_bigfile) {
|
if (avimux->is_bigfile) {
|
||||||
|
|
Loading…
Reference in a new issue