[vlc-devel] commit: Fix mp4 demux : define FREENULL ( Rafaël Carré )

git version control git at videolan.org
Fri Mar 28 14:50:10 CET 2008


vlc | branch: 0.8.6-bugfix | Rafaël Carré <funman at videolan.org> | Fri Mar 28 13:55:14 2008 +0100| [49a6a08ce9a7518ff1753ba1c68846401e7e74b0]

Fix mp4 demux : define FREENULL

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

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

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 8b1acd8..5dbc4d6 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -2,7 +2,7 @@
  * libmp4.c : LibMP4 library for mp4 module for vlc
  *****************************************************************************
  * Copyright (C) 2001-2004 the VideoLAN team
- * $Id$
+ * $Id: 8b1acd885fba59aa0289b594b8dc7ebc95e2cf4c $
  *
  * Author: Laurent Aimar <fenrir at via.ecp.fr>
  *
@@ -37,6 +37,8 @@
  *  *look* at the code.
  *
  *****************************************************************************/
+#define FREENULL( p ) do { free( p ); p = NULL; } while(0)
+
 #define MP4_BOX_HEADERSIZE( p_box ) \
   ( 8 + ( p_box->i_shortsize == 1 ? 8 : 0 ) \
       + ( p_box->i_type == FOURCC_uuid ? 16 : 0 ) )




More information about the vlc-devel mailing list