summaryrefslogtreecommitdiff
path: root/libavcodec/xsubdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-26 06:19:42 +0100
committerJames Almer <jamrial@gmail.com>2021-04-27 10:43:04 -0300
commitd947464ad41ea634ab19f8d631bfc035e4a902c1 (patch)
tree9ca8597da6dfcf71f9bebb6ae4a9bf9aae80a800 /libavcodec/xsubdec.c
parentaf581cf79d317e798482a095faae781142633f49 (diff)
avcodec: Remove deprecated AVPicture API
Deprecated in a17a7661906ba295d67afd80ac0770422e1b02b3. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/xsubdec.c')
-rw-r--r--libavcodec/xsubdec.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/libavcodec/xsubdec.c b/libavcodec/xsubdec.c
index 87ac910577..caab330ed3 100644
--- a/libavcodec/xsubdec.c
+++ b/libavcodec/xsubdec.c
@@ -134,20 +134,6 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_sub_ptr,
((uint32_t *)sub->rects[0]->data[1])[i] |= (unsigned)*buf++ << 24;
}
-#if FF_API_AVPICTURE
-FF_DISABLE_DEPRECATION_WARNINGS
-{
- AVSubtitleRect *rect;
- int j;
- rect = sub->rects[0];
- for (j = 0; j < 4; j++) {
- rect->pict.data[j] = rect->data[j];
- rect->pict.linesize[j] = rect->linesize[j];
- }
-}
-FF_ENABLE_DEPRECATION_WARNINGS
-#endif
-
// process RLE-compressed data
if ((ret = init_get_bits8(&gb, buf, buf_end - buf)) < 0)
return ret;