[FFmpeg-cvslog] r14633 - trunk/libavformat/matroskadec.c

aurel subversion
Wed Aug 6 02:21:10 CEST 2008


Author: aurel
Date: Wed Aug  6 02:21:10 2008
New Revision: 14633

Log:
matroskadec: use av_freep(&x) instead of av_free(x);x=NULL


Modified:
   trunk/libavformat/matroskadec.c

Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c	(original)
+++ trunk/libavformat/matroskadec.c	Wed Aug  6 02:21:10 2008
@@ -1304,8 +1304,7 @@ static void matroska_clear_queue(Matrosk
             av_free_packet(matroska->packets[n]);
             av_free(matroska->packets[n]);
         }
-        av_free(matroska->packets);
-        matroska->packets = NULL;
+        av_freep(&matroska->packets);
         matroska->num_packets = 0;
     }
 }




More information about the ffmpeg-cvslog mailing list