[FFmpeg-cvslog] r24188 - trunk/libavcodec/utils.c

reimar subversion
Sun Jul 11 09:53:39 CEST 2010


Author: reimar
Date: Sun Jul 11 09:53:39 2010
New Revision: 24188

Log:
100l, change avsubtitle_free to the actually tested and working version.

Modified:
   trunk/libavcodec/utils.c

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	Sun Jul 11 09:48:04 2010	(r24187)
+++ trunk/libavcodec/utils.c	Sun Jul 11 09:53:39 2010	(r24188)
@@ -695,16 +695,16 @@ void avsubtitle_free(AVSubtitle *sub)
 
     for (i = 0; i < sub->num_rects; i++)
     {
-        av_freep(sub->rects[i]->pict.data[0]);
-        av_freep(sub->rects[i]->pict.data[1]);
-        av_freep(sub->rects[i]->pict.data[2]);
-        av_freep(sub->rects[i]->pict.data[3]);
-        av_freep(sub->rects[i]->text);
-        av_freep(sub->rects[i]->ass);
-        av_freep(sub->rects[i]);
+        av_freep(&sub->rects[i]->pict.data[0]);
+        av_freep(&sub->rects[i]->pict.data[1]);
+        av_freep(&sub->rects[i]->pict.data[2]);
+        av_freep(&sub->rects[i]->pict.data[3]);
+        av_freep(&sub->rects[i]->text);
+        av_freep(&sub->rects[i]->ass);
+        av_freep(&sub->rects[i]);
     }
 
-    av_freep(sub->rects);
+    av_freep(&sub->rects);
 
     memset(sub, 0, sizeof(AVSubtitle));
 }



More information about the ffmpeg-cvslog mailing list