]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/utils.c
lavc: Add data and linesize to AVSubtitleRect
[ffmpeg] / libavcodec / utils.c
index 430926dc6513409dcafcde76b60fd1f2e418ab81..fa185307f8eafc3b35c4971fbd795ecc080c9fee 100644 (file)
@@ -1586,10 +1586,10 @@ void avsubtitle_free(AVSubtitle *sub)
     int i;
 
     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]->data[0]);
+        av_freep(&sub->rects[i]->data[1]);
+        av_freep(&sub->rects[i]->data[2]);
+        av_freep(&sub->rects[i]->data[3]);
         av_freep(&sub->rects[i]->text);
         av_freep(&sub->rects[i]->ass);
         av_freep(&sub->rects[i]);