[SCM] libav/experimental: matroskadec: Use av_freep in ebml_read_ascii
    siretart at users.alioth.debian.org 
    siretart at users.alioth.debian.org
       
    Sun Jun 30 17:07:17 UTC 2013
    
    
  
The following commit has been merged in the experimental branch:
commit 1c664b239cb583868c41cc04ceee38b02aa4caf5
Author: David Conrad <lessen42 at gmail.com>
Date:   Tue May 18 21:21:23 2010 +0000
    matroskadec: Use av_freep in ebml_read_ascii
    
    Based on a Chromium patch
    
    Originally committed as revision 23166 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 90356d8..556d6b9 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -621,7 +621,7 @@ static int ebml_read_ascii(ByteIOContext *pb, int size, char **str)
     if (!(*str = av_malloc(size + 1)))
         return AVERROR(ENOMEM);
     if (get_buffer(pb, (uint8_t *) *str, size) != size) {
-        av_free(*str);
+        av_freep(str);
         return AVERROR(EIO);
     }
     (*str)[size] = '\0';
-- 
Libav/FFmpeg packaging
    
    
More information about the pkg-multimedia-commits
mailing list