]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dvdsubenc.c
avcodec: Remove deprecated AVPicture API
[ffmpeg] / libavcodec / dvdsubenc.c
index 9fa9d5b6d708daff1e847a7c3b1ffe4515eac158..e55e2eab4fd6e9f9e7a17506d056a817366483fc 100644 (file)
@@ -279,20 +279,6 @@ static int encode_dvd_subtitles(AVCodecContext *avctx,
             break;
         }
 
-#if FF_API_AVPICTURE
-FF_DISABLE_DEPRECATION_WARNINGS
-    for (i = 0; i < rects; i++)
-        if (!h->rects[i]->data[0]) {
-            AVSubtitleRect *rect = h->rects[i];
-            int j;
-            for (j = 0; j < 4; j++) {
-                rect->data[j] = rect->pict.data[j];
-                rect->linesize[j] = rect->pict.linesize[j];
-            }
-        }
-FF_ENABLE_DEPRECATION_WARNINGS
-#endif
-
     vrect = *h->rects[0];
 
     if (rects > 1) {