[vlc-devel] [PATCH] demux/mp4: fix commit f9b65ba

Frédéric Yhuel yhuelf at gmail.com
Sun Oct 14 11:45:54 CEST 2012


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

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 8f2b8ae..b93757a 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -2704,8 +2704,11 @@ static void MP4_TrackDestroy( mp4_track_t *p_track )
         }
     }
     FREENULL( p_track->chunk );
-    FreeAndResetChunk( p_track->cchunk );
-    FREENULL( p_track->cchunk );
+    if( p_track->cchunk )
+    {
+        FreeAndResetChunk( p_track->cchunk );
+        FREENULL( p_track->cchunk );
+    }
 
     if( !p_track->i_sample_size )
     {
-- 
1.7.9.5



More information about the vlc-devel mailing list