[vlc-commits] demux: libmp4: use MP4BoxFree

Francois Cartegnie git at videolan.org
Tue Mar 29 19:58:50 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Mar 27 14:42:51 2016 +0200| [76b4e03ff3449326de7589343ff39f8ec1dbea99] | committer: Francois Cartegnie

demux: libmp4: use MP4BoxFree

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

 modules/demux/mp4/libmp4.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index c8821bf..3762892 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -4236,10 +4236,10 @@ MP4_Box_t *MP4_BoxGetNextChunk( stream_t *s )
 
     if( p_tmp_box->i_type == ATOM_ftyp )
     {
-        free( p_tmp_box );
+        MP4_BoxFree( p_tmp_box );
         return MP4_BoxGetRoot( s );
     }
-    free( p_tmp_box );
+    MP4_BoxFree( p_tmp_box );
 
     p_fakeroot = MP4_BoxNew( ATOM_root );
     if( unlikely( p_fakeroot == NULL ) )



More information about the vlc-commits mailing list