[FFmpeg-cvslog] r9474 - trunk/libavcodec/bitstream.c

mru subversion
Thu Jul 5 08:47:00 CEST 2007


Author: mru
Date: Thu Jul  5 08:47:00 2007
New Revision: 9474

Log:
use av_freep() in free_vlc() and failed init_vlc()


Modified:
   trunk/libavcodec/bitstream.c

Modified: trunk/libavcodec/bitstream.c
==============================================================================
--- trunk/libavcodec/bitstream.c	(original)
+++ trunk/libavcodec/bitstream.c	Thu Jul  5 08:47:00 2007
@@ -261,7 +261,7 @@ int init_vlc_sparse(VLC *vlc, int nb_bit
                     codes, codes_wrap, codes_size,
                     symbols, symbols_wrap, symbols_size,
                     0, 0, flags) < 0) {
-        av_free(vlc->table);
+        av_freep(&vlc->table);
         return -1;
     }
     return 0;
@@ -270,6 +270,6 @@ int init_vlc_sparse(VLC *vlc, int nb_bit
 
 void free_vlc(VLC *vlc)
 {
-    av_free(vlc->table);
+    av_freep(&vlc->table);
 }
 




More information about the ffmpeg-cvslog mailing list