| 607 | } |
| 608 | |
| 609 | static 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 | |
| 629 | static int find_next_slice(AVCodecContext *avctx, |
| 630 | uint8_t *buf, uint8_t *buf_end, int idx, |
nothing calls this directly
no test coverage detected