diff options
Diffstat (limited to 'libavcodec/xbmenc.c')
-rw-r--r-- | libavcodec/xbmenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/xbmenc.c b/libavcodec/xbmenc.c index 3451ecc88c..37773bc382 100644 --- a/libavcodec/xbmenc.c +++ b/libavcodec/xbmenc.c @@ -21,6 +21,7 @@ */ #include "avcodec.h" +#include "encode.h" #include "internal.h" #include "mathops.h" @@ -43,7 +44,7 @@ static int xbm_encode_frame(AVCodecContext *avctx, AVPacket *pkt, } size = rowsout * (lineout * 6 + 1) + 106; - if ((ret = ff_alloc_packet2(avctx, pkt, size, 0)) < 0) + if ((ret = ff_alloc_packet(avctx, pkt, size)) < 0) return ret; buf = pkt->data; |