|
|
@ -41,7 +41,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
typedef struct { |
|
|
|
typedef struct { |
|
|
|
const AVClass *class; |
|
|
|
const AVClass *class; |
|
|
|
AVFrame picture; |
|
|
|
|
|
|
|
LZWState *lzw; |
|
|
|
LZWState *lzw; |
|
|
|
uint8_t *buf; |
|
|
|
uint8_t *buf; |
|
|
|
AVFrame *last_frame; |
|
|
|
AVFrame *last_frame; |
|
|
@ -233,7 +232,7 @@ static int gif_encode_frame(AVCodecContext *avctx, AVPacket *pkt, |
|
|
|
const AVFrame *pict, int *got_packet) |
|
|
|
const AVFrame *pict, int *got_packet) |
|
|
|
{ |
|
|
|
{ |
|
|
|
GIFContext *s = avctx->priv_data; |
|
|
|
GIFContext *s = avctx->priv_data; |
|
|
|
AVFrame *const p = &s->picture; |
|
|
|
AVFrame *const p = (AVFrame *)pict; |
|
|
|
uint8_t *outbuf_ptr, *end; |
|
|
|
uint8_t *outbuf_ptr, *end; |
|
|
|
const uint32_t *palette = NULL; |
|
|
|
const uint32_t *palette = NULL; |
|
|
|
int ret; |
|
|
|
int ret; |
|
|
@ -243,7 +242,6 @@ static int gif_encode_frame(AVCodecContext *avctx, AVPacket *pkt, |
|
|
|
outbuf_ptr = pkt->data; |
|
|
|
outbuf_ptr = pkt->data; |
|
|
|
end = pkt->data + pkt->size; |
|
|
|
end = pkt->data + pkt->size; |
|
|
|
|
|
|
|
|
|
|
|
*p = *pict; |
|
|
|
|
|
|
|
p->pict_type = AV_PICTURE_TYPE_I; |
|
|
|
p->pict_type = AV_PICTURE_TYPE_I; |
|
|
|
p->key_frame = 1; |
|
|
|
p->key_frame = 1; |
|
|
|
|
|
|
|
|
|
|
|