aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/v408dec.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-01-20 10:26:33 -0300
committerJames Almer <jamrial@gmail.com>2024-03-07 08:53:29 -0300
commit9ee59b63f5ea37700916815538c32dbcadc4a512 (patch)
treebc4f2ddcbbf7cf493eb3b9fd67abc4d6c984233c /libavcodec/v408dec.c
parentc947731275e63be9ccfd50096967ea446b7e57df (diff)
downloadffmpeg-9ee59b63f5ea37700916815538c32dbcadc4a512.tar.gz
avcodec: remove deprecated FF_API_AYUV_CODECID
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/v408dec.c')
-rw-r--r--libavcodec/v408dec.c35
1 files changed, 4 insertions, 31 deletions
diff --git a/libavcodec/v408dec.c b/libavcodec/v408dec.c
index 191c050fb2..4d8bccd650 100644
--- a/libavcodec/v408dec.c
+++ b/libavcodec/v408dec.c
@@ -29,10 +29,6 @@ static av_cold int v408_decode_init(AVCodecContext *avctx)
{
avctx->pix_fmt = AV_PIX_FMT_YUVA444P;
-#if FF_API_AYUV_CODECID
- if (avctx->codec_id==AV_CODEC_ID_AYUV)
- av_log(avctx, AV_LOG_WARNING, "This decoder is deprecated and will be removed.\n");
-#endif
return 0;
}
@@ -61,20 +57,10 @@ static int v408_decode_frame(AVCodecContext *avctx, AVFrame *pic,
for (i = 0; i < avctx->height; i++) {
for (j = 0; j < avctx->width; j++) {
-#if FF_API_AYUV_CODECID
- if (avctx->codec_id==AV_CODEC_ID_AYUV) {
- v[j] = *src++;
- u[j] = *src++;
- y[j] = *src++;
- a[j] = *src++;
- } else
-#endif
- {
- u[j] = *src++;
- y[j] = *src++;
- v[j] = *src++;
- a[j] = *src++;
- }
+ u[j] = *src++;
+ y[j] = *src++;
+ v[j] = *src++;
+ a[j] = *src++;
}
y += pic->linesize[0];
@@ -88,19 +74,6 @@ static int v408_decode_frame(AVCodecContext *avctx, AVFrame *pic,
return avpkt->size;
}
-#if FF_API_AYUV_CODECID
-#if CONFIG_AYUV_DECODER
-const FFCodec ff_ayuv_decoder = {
- .p.name = "ayuv",
- CODEC_LONG_NAME("Uncompressed packed MS 4:4:4:4"),
- .p.type = AVMEDIA_TYPE_VIDEO,
- .p.id = AV_CODEC_ID_AYUV,
- .init = v408_decode_init,
- FF_CODEC_DECODE_CB(v408_decode_frame),
- .p.capabilities = AV_CODEC_CAP_DR1,
-};
-#endif
-#endif
#if CONFIG_V408_DECODER
const FFCodec ff_v408_decoder = {
.p.name = "v408",