summaryrefslogtreecommitdiffstats
path: root/libhb/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/stream.c')
-rw-r--r--libhb/stream.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libhb/stream.c b/libhb/stream.c
index b03a1530a..69af167b7 100644
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -5101,13 +5101,14 @@ static void add_ffmpeg_audio(hb_title_t *title, hb_stream_t *stream, int id)
AVCodecParameters *codecpar = st->codecpar;
AVDictionaryEntry *tag = av_dict_get(st->metadata, "language", NULL, 0);
- hb_audio_t *audio = calloc(1, sizeof(*audio));
- audio->id = id;
- audio->config.in.track = id;
- audio->config.in.codec = HB_ACODEC_FFMPEG;
- audio->config.in.codec_param = codecpar->codec_id;
+ hb_audio_t *audio = calloc(1, sizeof(*audio));
+ audio->id = id;
+ audio->config.in.track = id;
+ audio->config.in.codec = HB_ACODEC_FFMPEG;
+ audio->config.in.codec_param = codecpar->codec_id;
// set the bitrate to 0; decavcodecaBSInfo will be called and fill the rest
- audio->config.in.bitrate = 0;
+ audio->config.in.bitrate = 0;
+ audio->config.in.encoder_delay = codecpar->initial_padding;
// set the input codec and extradata for Passthru
switch (codecpar->codec_id)