Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-09-24 13:06:31 +0300
committerPaul B Mahol <onemda@gmail.com>2022-09-24 13:23:33 +0300
commita44a540ed16e8cac4612df27c470325740bf5a1d (patch)
tree29afba332340e2054684609ff1a223877e605042 /libavcodec/cri.c
parent3e49c1e07a945b88545381c373dfaf1c1b7c64c3 (diff)
avcodec/cri: implement FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
Diffstat (limited to 'libavcodec/cri.c')
-rw-r--r--libavcodec/cri.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/cri.c b/libavcodec/cri.c
index ec5c88f897..5761152c2d 100644
--- a/libavcodec/cri.c
+++ b/libavcodec/cri.c
@@ -317,6 +317,9 @@ skip:
if (!s->data || !s->data_size)
return AVERROR_INVALIDDATA;
+ if (avctx->skip_frame >= AVDISCARD_ALL)
+ return avpkt->size;
+
if ((ret = ff_thread_get_buffer(avctx, p, 0)) < 0)
return ret;
@@ -432,6 +435,7 @@ const FFCodec ff_cri_decoder = {
FF_CODEC_DECODE_CB(cri_decode_frame),
.close = cri_decode_close,
.p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS,
- .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP |
+ FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM,
CODEC_LONG_NAME("Cintel RAW"),
};