diff options
Diffstat (limited to 'libavcodec/v408dec.c')
-rw-r--r-- | libavcodec/v408dec.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libavcodec/v408dec.c b/libavcodec/v408dec.c index 88fa777f22..694ee96b77 100644 --- a/libavcodec/v408dec.c +++ b/libavcodec/v408dec.c @@ -29,6 +29,10 @@ 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; } @@ -57,12 +61,15 @@ 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 { + } else +#endif + { u[j] = *src++; y[j] = *src++; v[j] = *src++; @@ -81,6 +88,7 @@ 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", @@ -92,6 +100,7 @@ const FFCodec ff_ayuv_decoder = { .p.capabilities = AV_CODEC_CAP_DR1, }; #endif +#endif #if CONFIG_V408_DECODER const FFCodec ff_v408_decoder = { .p.name = "v408", |