diff options
Diffstat (limited to 'libavcodec/gif.c')
-rw-r--r-- | libavcodec/gif.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/gif.c b/libavcodec/gif.c index 8f0a3d79c1..5e7cc47206 100644 --- a/libavcodec/gif.c +++ b/libavcodec/gif.c @@ -35,6 +35,7 @@ #include "libavutil/imgutils.h" #include "avcodec.h" #include "bytestream.h" +#include "encode.h" #include "internal.h" #include "lzw.h" #include "gif.h" @@ -480,7 +481,7 @@ static int gif_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const uint32_t *palette = NULL; int ret; - if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width*avctx->height*7/5 + AV_INPUT_BUFFER_MIN_SIZE, 0)) < 0) + if ((ret = ff_alloc_packet(avctx, pkt, avctx->width*avctx->height*7/5 + AV_INPUT_BUFFER_MIN_SIZE)) < 0) return ret; outbuf_ptr = pkt->data; end = pkt->data + pkt->size; |