Signed-off-by: Paul B Mahol <onemda@gmail.com>
typedef struct {
const AVClass *class;
- AVFrame picture;
LZWState *lzw;
uint8_t *buf;
AVFrame *last_frame;
const AVFrame *pict, int *got_packet)
{
GIFContext *s = avctx->priv_data;
- AVFrame *const p = &s->picture;
+ AVFrame *const p = (AVFrame *)pict;
uint8_t *outbuf_ptr, *end;
const uint32_t *palette = NULL;
int ret;
outbuf_ptr = pkt->data;
end = pkt->data + pkt->size;
- *p = *pict;
p->pict_type = AV_PICTURE_TYPE_I;
p->key_frame = 1;