static int decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
- const uint8_t *in_buf, int buf_size)
+ AVPacket *avpkt)
{
+ const uint8_t *in_buf = avpkt->data;
+ int buf_size = avpkt->size;
SgiState *s = avctx->priv_data;
AVFrame *picture = data;
AVFrame *p = &s->picture;
NULL,
sgi_end,
decode_frame,
- .long_name = "SGI image",
+ .long_name = NULL_IF_CONFIG_SMALL("SGI image"),
};