summaryrefslogtreecommitdiff
path: root/libavcodec/pgssubdec.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/pgssubdec.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/pgssubdec.c')
-rw-r--r--libavcodec/pgssubdec.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c
index 9c59a2297f..eaf069017a 100644
--- a/libavcodec/pgssubdec.c
+++ b/libavcodec/pgssubdec.c
@@ -596,20 +596,6 @@ static int display_end_segment(AVCodecContext *avctx, void *data,
if (!ctx->forced_subs_only || ctx->presentation.objects[i].composition_flag & 0x40)
memcpy(sub->rects[i]->data[1], palette->clut, sub->rects[i]->nb_colors * sizeof(uint32_t));
-
-#if FF_API_AVPICTURE
-FF_DISABLE_DEPRECATION_WARNINGS
-{
- AVSubtitleRect *rect;
- int j;
- rect = sub->rects[i];
- 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
}
return 1;
}