summaryrefslogtreecommitdiffstats
path: root/libhb/muxavformat.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/muxavformat.c')
-rw-r--r--libhb/muxavformat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c
index 729e6c672..6c56f8a5f 100644
--- a/libhb/muxavformat.c
+++ b/libhb/muxavformat.c
@@ -401,6 +401,8 @@ static int avformatInit( hb_mux_object_t * m )
}
track->st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
+ track->st->codecpar->initial_padding = audio->priv.config.init_delay *
+ audio->config.out.samplerate / 90000;
if (job->mux == HB_MUX_AV_MP4)
{
track->st->time_base.num = 1;