diff options
Diffstat (limited to 'libavcodec/asvenc.c')
-rw-r--r-- | libavcodec/asvenc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/asvenc.c b/libavcodec/asvenc.c index bf11701d17..6be7f5282a 100644 --- a/libavcodec/asvenc.c +++ b/libavcodec/asvenc.c @@ -30,6 +30,7 @@ #include "asv.h" #include "avcodec.h" #include "dct.h" +#include "encode.h" #include "fdctdsp.h" #include "internal.h" #include "mpeg12data.h" @@ -255,8 +256,8 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, return ret; } - if ((ret = ff_alloc_packet2(avctx, pkt, a->mb_height * a->mb_width * MAX_MB_SIZE + - AV_INPUT_BUFFER_MIN_SIZE, 0)) < 0) + if ((ret = ff_alloc_packet(avctx, pkt, a->mb_height * a->mb_width * MAX_MB_SIZE + + AV_INPUT_BUFFER_MIN_SIZE)) < 0) return ret; init_put_bits(&a->pb, pkt->data, pkt->size); |