avcodec/apv_decode: set decoder as skip frame fill param capable

No need to decode potentially huge frames just to get stream params.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2025-08-11 19:43:33 -03:00
parent 084b67f6e3
commit 3ef2ea890b

View file

@ -361,6 +361,9 @@ static int apv_decode(AVCodecContext *avctx, AVFrame *output,
return err;
}
if (avctx->skip_frame == AVDISCARD_ALL)
return 0;
desc = av_pix_fmt_desc_get(avctx->pix_fmt);
av_assert0(desc);
@ -564,4 +567,5 @@ const FFCodec ff_apv_decoder = {
.p.capabilities = AV_CODEC_CAP_DR1 |
AV_CODEC_CAP_SLICE_THREADS |
AV_CODEC_CAP_FRAME_THREADS,
.caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM,
};