diff --git a/libavcodec/gif.c b/libavcodec/gif.c index 7a5e287c57..388f9b2718 100644 --- a/libavcodec/gif.c +++ b/libavcodec/gif.c @@ -217,7 +217,6 @@ static av_cold int gif_encode_init(AVCodecContext *avctx) return AVERROR(EINVAL); } - avctx->coded_frame = &s->picture; s->lzw = av_mallocz(ff_lzw_encode_state_size); s->buf = av_malloc(avctx->width*avctx->height*2); s->tmpl = av_malloc(avctx->width);