summaryrefslogtreecommitdiffstats
path: root/libhb/encx265.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-02-14 16:25:40 -0700
committerJohn Stebbins <[email protected]>2017-02-14 16:27:26 -0700
commit5429a92c51682240acbbe7b150d314d993d7d3a0 (patch)
tree51b2b4ef27d3c3a97e76cf43c6a4b15c55ffac45 /libhb/encx265.c
parentdf5601053a8857ad8e2b59d56e82bac7f44e96fb (diff)
mux: shift timestamps by largest encoder delay
This prevents libav from adding an mp4 edit list entry that causes a properly functioning player to drop the first couple of audio frames.
Diffstat (limited to 'libhb/encx265.c')
-rw-r--r--libhb/encx265.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/encx265.c b/libhb/encx265.c
index 0c5d4141a..90d786983 100644
--- a/libhb/encx265.c
+++ b/libhb/encx265.c
@@ -414,9 +414,9 @@ static hb_buffer_t* nal_encode(hb_work_object_t *w,
buf->s.stop = pic_out->pts + buf->s.duration;
buf->s.start = pic_out->pts;
buf->s.renderOffset = pic_out->dts;
- if (w->config->h264.init_delay == 0 && pic_out->dts < 0)
+ if (w->config->init_delay == 0 && pic_out->dts < 0)
{
- w->config->h264.init_delay -= pic_out->dts;
+ w->config->init_delay -= pic_out->dts;
}
switch (pic_out->sliceType)