mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
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:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user