MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / decode_init

Function decode_init

libavcodec/ffv1dec.c:609–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607}
608
609static av_cold int decode_init(AVCodecContext *avctx)
610{
611 FFV1Context *f = avctx->priv_data;
612 int ret;
613
614 f->pix_fmt = AV_PIX_FMT_NONE;
615 f->configured_pix_fmt = AV_PIX_FMT_NONE;
616
617 if ((ret = ff_ffv1_common_init(avctx, f)) < 0)
618 return ret;
619
620 if (avctx->extradata_size > 0 && (ret = ff_ffv1_read_extra_header(f)) < 0)
621 return ret;
622
623 if ((ret = ff_ffv1_init_slice_contexts(f)) < 0)
624 return ret;
625
626 return 0;
627}
628
629static int find_next_slice(AVCodecContext *avctx,
630 uint8_t *buf, uint8_t *buf_end, int idx,

Callers

nothing calls this directly

Calls 3

ff_ffv1_common_initFunction · 0.85

Tested by

no test coverage detected