OSDN Git Service

100l, change avsubtitle_free to the actually tested and working version.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 11 Jul 2010 07:53:39 +0000 (07:53 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 11 Jul 2010 07:53:39 +0000 (07:53 +0000)
Originally committed as revision 24188 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/utils.c

index ced6b64..f21e9ed 100644 (file)
@@ -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));
 }