summaryrefslogtreecommitdiff
path: root/libavcodec/lclenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/lclenc.c')
-rw-r--r--libavcodec/lclenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/lclenc.c b/libavcodec/lclenc.c
index 3eee95fa04..1e15b09624 100644
--- a/libavcodec/lclenc.c
+++ b/libavcodec/lclenc.c
@@ -42,6 +42,7 @@
#include "libavutil/avassert.h"
#include "avcodec.h"
+#include "encode.h"
#include "internal.h"
#include "lcl.h"
#include "libavutil/internal.h"
@@ -70,7 +71,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
int zret; // Zlib return code
int max_size = deflateBound(&c->zstream, avctx->width * avctx->height * 3);
- if ((ret = ff_alloc_packet2(avctx, pkt, max_size, 0)) < 0)
+ if ((ret = ff_alloc_packet(avctx, pkt, max_size)) < 0)
return ret;
if(avctx->pix_fmt != AV_PIX_FMT_BGR24){