From e538608b3f90539003de21c1db238f3c9b946e30 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 27 Apr 2016 14:09:03 +0300 Subject: [PATCH] avimux: Don't override maximum audio chunk size with the scale again just before writing it set_fields() should only be called in the beginning, otherwise we will never remember the maximum audio chunk size and write a wrong block align... which then causes wrong timestamps and other problems. --- gst/avi/gstavimux.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c index b28a0174ae..ed78c1f1e1 100644 --- a/gst/avi/gstavimux.c +++ b/gst/avi/gstavimux.c @@ -1830,7 +1830,6 @@ gst_avi_mux_stop_file (GstAviMux * avimux) audpad->auds.blockalign = audpad->max_audio_chunk; if (audpad->auds.blockalign == 0) audpad->auds.blockalign = 1; - gst_avi_mux_audsink_set_fields (avimux, audpad); avimux->avi_hdr.max_bps += audpad->auds.av_bps; avipad->hdr.length = gst_util_uint64_scale (audpad->audio_time, avipad->hdr.rate, avipad->hdr.scale * GST_SECOND); -- 2.34.1