[vlc-commits] mux: mp4: fix conversion from hvcC metadata
Francois Cartegnie
git at videolan.org
Tue Dec 8 17:31:45 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Dec 8 16:29:19 2015 +0100| [bf6b8dfaed115500b7a4b5edbd7b1a12ad185abe] | committer: Francois Cartegnie
mux: mp4: fix conversion from hvcC metadata
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bf6b8dfaed115500b7a4b5edbd7b1a12ad185abe
---
modules/mux/mp4/libmp4mux.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/modules/mux/mp4/libmp4mux.c b/modules/mux/mp4/libmp4mux.c
index 2828f28..2800079 100644
--- a/modules/mux/mp4/libmp4mux.c
+++ b/modules/mux/mp4/libmp4mux.c
@@ -591,6 +591,13 @@ static bo_t *GetHvcCTag(es_format_t *p_fmt)
uint8_t * p_buffer = p_fmt->p_extra;
size_t i_buffer = p_fmt->i_extra;
+ /* Extradata is already an HEVCDecoderConfigurationRecord */
+ if(i_buffer > 16 && p_buffer[0] == 0x01)
+ {
+ (void) bo_add_mem(hvcC, i_buffer, p_buffer);
+ return hvcC;
+ }
+
uint8_t general_configuration[12] = {0};
uint8_t i_numTemporalLayer = 0;
uint8_t i_chroma_idc = 1;
More information about the vlc-commits
mailing list