changeset 12137:b8a0924d6e42 libavcodec

100l, change avsubtitle_free to the actually tested and working version.
author reimar
date Sun, 11 Jul 2010 07:53:39 +0000
parents 31bca176d2d9
children 41f078d6869d
files utils.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Sun Jul 11 07:48:04 2010 +0000
+++ b/utils.c	Sun Jul 11 07:53:39 2010 +0000
@@ -695,16 +695,16 @@
 
     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));
 }