[vlc-commits] demux: mp4: compute virtual box size
Francois Cartegnie
git at videolan.org
Sat May 24 20:48:24 CEST 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at 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;
}
More information about the vlc-commits
mailing list