changeset 5206:02dd5e0d7e46 libavcodec

use av_freep() in free_vlc() and failed init_vlc()
author mru
date Thu, 05 Jul 2007 06:47:00 +0000
parents 922bb0564bd3
children 429a90b631a5
files bitstream.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bitstream.c	Thu Jul 05 03:01:53 2007 +0000
+++ b/bitstream.c	Thu Jul 05 06:47:00 2007 +0000
@@ -261,7 +261,7 @@
                     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 @@
 
 void free_vlc(VLC *vlc)
 {
-    av_free(vlc->table);
+    av_freep(&vlc->table);
 }