diff options
author | John Stebbins <[email protected]> | 2017-02-14 16:25:40 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2017-02-14 16:27:26 -0700 |
commit | 5429a92c51682240acbbe7b150d314d993d7d3a0 (patch) | |
tree | 51b2b4ef27d3c3a97e76cf43c6a4b15c55ffac45 /libhb/internal.h | |
parent | df5601053a8857ad8e2b59d56e82bac7f44e96fb (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/internal.h')
-rw-r--r-- | libhb/internal.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libhb/internal.h b/libhb/internal.h index 1a7094429..1e79447f8 100644 --- a/libhb/internal.h +++ b/libhb/internal.h @@ -373,8 +373,12 @@ void hb_stream_set_need_keyframe( hb_stream_t *stream, int need_keyframe ); * Work objects **********************************************************************/ #define HB_CONFIG_MAX_SIZE (2*8192) -union hb_esconfig_u +struct hb_esconfig_s { + int init_delay; + + union + { struct { @@ -388,7 +392,6 @@ union hb_esconfig_u int sps_length; uint8_t pps[HB_CONFIG_MAX_SIZE]; int pps_length; - int init_delay; } h264; struct @@ -413,6 +416,7 @@ union hb_esconfig_u uint8_t headers[3][HB_CONFIG_MAX_SIZE]; char *language; } vorbis; + }; }; enum |