avcodec/photocd: implement FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM

pull/388/head
Paul B Mahol 2 years ago
parent a44a540ed1
commit a54da0831c
  1. 4
      libavcodec/photocd.c

@ -325,6 +325,9 @@ static int photocd_decode_frame(AVCodecContext *avctx, AVFrame *p,
if (ret < 0)
return ret;
if (avctx->skip_frame >= AVDISCARD_ALL)
return avpkt->size;
if ((ret = ff_thread_get_buffer(avctx, p, 0)) < 0)
return ret;
@ -466,5 +469,6 @@ const FFCodec ff_photocd_decoder = {
.close = photocd_decode_close,
FF_CODEC_DECODE_CB(photocd_decode_frame),
.p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS,
.caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM,
CODEC_LONG_NAME("Kodak Photo CD"),
};

Loading…
Cancel
Save