vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Sat May 24 
19:58:05 2014 +0200| [e8f515eda6dc7ef231217666e464923696fe716d] | committer: 
Francois Cartegnie

demux: mp4: compute virtual box size

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

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

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 34021ad..2125975 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -3648,6 +3648,13 @@ MP4_Box_t *MP4_BoxGetNextChunk( stream_t *s )
 
     MP4_ReadBoxContainerChildren( s, p_chunk, ATOM_moof );
 
+    p_tmp_box = p_chunk->p_first;
+    while( p_tmp_box )
+    {
+        p_chunk->i_size += p_tmp_box->i_size;
+        p_tmp_box = p_tmp_box->p_next;
+    }
+
     return p_chunk;
 }
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to