[vlc-commits] mux: mp4: fix avcC
Francois Cartegnie
git at videolan.org
Fri May 27 12:02:00 CEST 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri May 27 11:30:34 2016 +0200| [44d40a71e57fa893ca28208c82dddc2fe781d1f3] | committer: Francois Cartegnie
mux: mp4: fix avcC
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=44d40a71e57fa893ca28208c82dddc2fe781d1f3
---
modules/mux/mp4/libmp4mux.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/mux/mp4/libmp4mux.c b/modules/mux/mp4/libmp4mux.c
index 30cc46f..7c8150e 100644
--- a/modules/mux/mp4/libmp4mux.c
+++ b/modules/mux/mp4/libmp4mux.c
@@ -821,6 +821,10 @@ static bo_t *GetAvcCTag(es_format_t *p_fmt)
return NULL;
}
+ (void) hxxx_strip_AnnexB_startcode( (const uint8_t **) &p_sps, &i_sps_size );
+ (void) hxxx_strip_AnnexB_startcode( (const uint8_t **) &p_sps, &i_sps_size );
+ (void) hxxx_strip_AnnexB_startcode( (const uint8_t **) &p_ext, &i_ext_size );
+
bo_add_8(avcC, 1); /* configuration version */
bo_add_8(avcC, i_sps_size ? p_sps[1] : PROFILE_H264_MAIN);
bo_add_8(avcC, i_sps_size ? p_sps[2] : 64);
More information about the vlc-commits
mailing list