[vlc-commits] demux: mp4: missing temp box parenting

Francois Cartegnie git at videolan.org
Fri Oct 16 19:55:52 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Oct 16 19:54:10 2015 +0200| [d1daa6eac867d82ee7a91e2b2c780248c1e1864d] | committer: Francois Cartegnie

demux: mp4: missing temp box parenting

Otherwise fails special parenting checks
ex: in ATOM_meta reads

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

 modules/demux/mp4/libmp4.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 9a94936..815d6aa 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -238,6 +238,7 @@ static MP4_Box_t *MP4_ReadBoxRestricted( stream_t *p_stream, MP4_Box_t *p_father
     *p_box = peekbox;
 
     const uint64_t i_next = p_box->i_pos + p_box->i_size;
+    p_box->p_father = p_father;
     if( MP4_Box_Read_Specific( p_stream, p_box, p_father ) != VLC_SUCCESS )
     {
         msg_Warn( p_stream, "Failed reading box %4.4s", (char*) &peekbox.i_type );



More information about the vlc-commits mailing list