[vlc-commits] demux: mp4: add readcontainerrestricted

Francois Cartegnie git at videolan.org
Mon Feb 6 20:08:06 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Feb  5 19:18:03 2017 +0100| [6a6f159db47d46e80e8c1df01eace7530d861b1e] | committer: Francois Cartegnie

demux: mp4: add readcontainerrestricted

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6a6f159db47d46e80e8c1df01eace7530d861b1e
---

 modules/demux/mp4/libmp4.c | 7 +++++++
 modules/demux/mp4/libmp4.h | 4 ++++
 2 files changed, 11 insertions(+)

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 01f480a..1ef0fcf 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -378,6 +378,13 @@ static int MP4_ReadBoxContainerChildrenIndexed( stream_t *p_stream,
     return 1;
 }
 
+int MP4_ReadBoxContainerRestricted( stream_t *p_stream, MP4_Box_t *p_container,
+                                    const uint32_t stoplist[], const uint32_t excludelist[] )
+{
+    return MP4_ReadBoxContainerChildrenIndexed( p_stream, p_container,
+                                                stoplist, excludelist, false );
+}
+
 int MP4_ReadBoxContainerChildren( stream_t *p_stream, MP4_Box_t *p_container,
                                   const uint32_t stoplist[] )
 {
diff --git a/modules/demux/mp4/libmp4.h b/modules/demux/mp4/libmp4.h
index fdccec1..8bffc07 100644
--- a/modules/demux/mp4/libmp4.h
+++ b/modules/demux/mp4/libmp4.h
@@ -1927,6 +1927,10 @@ MP4_Box_t * MP4_BoxExtract( MP4_Box_t **pp_chain, uint32_t i_type );
 /* Internal functions exposed for demuxers */
 int MP4_ReadBoxContainerChildren( stream_t *p_stream, MP4_Box_t *p_container,
                                   const uint32_t stoplist[] );
+int MP4_ReadBoxContainerRestricted( stream_t *p_stream, MP4_Box_t *p_container,
+                                    const uint32_t stoplist[],
+                                    const uint32_t excludelist[] );
+
 int MP4_ReadBox_sample_vide( stream_t *p_stream, MP4_Box_t *p_box );
 
 #endif



More information about the vlc-commits mailing list