| 211 | } |
| 212 | |
| 213 | static av_cold int seqvideo_decode_init(AVCodecContext *avctx) |
| 214 | { |
| 215 | SeqVideoContext *seq = avctx->priv_data; |
| 216 | int ret; |
| 217 | |
| 218 | seq->avctx = avctx; |
| 219 | avctx->pix_fmt = AV_PIX_FMT_PAL8; |
| 220 | |
| 221 | ret = ff_set_dimensions(avctx, 256, 128); |
| 222 | if (ret < 0) |
| 223 | return ret; |
| 224 | |
| 225 | seq->frame = av_frame_alloc(); |
| 226 | if (!seq->frame) |
| 227 | return AVERROR(ENOMEM); |
| 228 | |
| 229 | return 0; |
| 230 | } |
| 231 | |
| 232 | static int seqvideo_decode_frame(AVCodecContext *avctx, AVFrame *rframe, |
| 233 | int *got_frame, AVPacket *avpkt) |
nothing calls this directly
no test coverage detected