diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-26 08:19:42 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-04-27 16:43:04 +0300 |
commit | d947464ad41ea634ab19f8d631bfc035e4a902c1 (patch) | |
tree | 9ca8597da6dfcf71f9bebb6ae4a9bf9aae80a800 /libavcodec/xsubenc.c | |
parent | af581cf79d317e798482a095faae781142633f49 (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/xsubenc.c')
-rw-r--r-- | libavcodec/xsubenc.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libavcodec/xsubenc.c b/libavcodec/xsubenc.c index 9139159c98..53fcb76656 100644 --- a/libavcodec/xsubenc.c +++ b/libavcodec/xsubenc.c @@ -132,19 +132,6 @@ static int xsub_encode(AVCodecContext *avctx, unsigned char *buf, if (h->num_rects != 1) av_log(avctx, AV_LOG_WARNING, "Only single rects supported (%d in subtitle.)\n", h->num_rects); -#if FF_API_AVPICTURE -FF_DISABLE_DEPRECATION_WARNINGS - if (!h->rects[0]->data[0]) { - AVSubtitleRect *rect = h->rects[0]; - 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 - // TODO: render text-based subtitles into bitmaps if (!h->rects[0]->data[0] || !h->rects[0]->data[1]) { av_log(avctx, AV_LOG_WARNING, "No subtitle bitmap available.\n"); |