diff options
Diffstat (limited to 'libavcodec/cfhdenc.c')
-rw-r--r-- | libavcodec/cfhdenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/cfhdenc.c b/libavcodec/cfhdenc.c index 3445295796..968962102f 100644 --- a/libavcodec/cfhdenc.c +++ b/libavcodec/cfhdenc.c @@ -34,6 +34,7 @@ #include "bytestream.h" #include "cfhd.h" #include "cfhdencdsp.h" +#include "encode.h" #include "put_bits.h" #include "internal.h" #include "thread.h" @@ -547,7 +548,7 @@ static int cfhd_encode_frame(AVCodecContext *avctx, AVPacket *pkt, width, height * 2); } - ret = ff_alloc_packet2(avctx, pkt, 64LL + s->planes * (2LL * avctx->width * avctx->height + 1000LL), 0); + ret = ff_alloc_packet(avctx, pkt, 64LL + s->planes * (2LL * avctx->width * avctx->height + 1000LL)); if (ret < 0) return ret; |