| 2896 | } |
| 2897 | |
| 2898 | static int decode_frame(AVCodecContext *avctx, AVFrame *frame, |
| 2899 | int *got_frame_ptr, AVPacket *pkt) |
| 2900 | { |
| 2901 | SANMVideoContext *ctx = avctx->priv_data; |
| 2902 | int ret; |
| 2903 | |
| 2904 | ctx->frame = frame; |
| 2905 | bytestream2_init(&ctx->gb, pkt->data, pkt->size); |
| 2906 | |
| 2907 | if (!ctx->version) { |
| 2908 | if ((ret = decode_anim(avctx, got_frame_ptr))) |
| 2909 | return ret; |
| 2910 | } else { |
| 2911 | if ((ret = decode_bl16(avctx, got_frame_ptr))) |
| 2912 | return ret; |
| 2913 | } |
| 2914 | return pkt->size; |
| 2915 | } |
| 2916 | |
| 2917 | const FFCodec ff_sanm_decoder = { |
| 2918 | .p.name = "sanm", |
nothing calls this directly
no test coverage detected