X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fxbmenc.c;h=b25615f2a47251e904fd1fd0aa43102133cbba92;hb=9d1d7b367eeb74dbfb8501580e6c3568f3fe5973;hp=a752bdf2a73b17cedf2d9298869dc5f417fd9d6c;hpb=dae79a185fa53cdc6c0d1892fda857172d48c0b9;p=ffmpeg diff --git a/libavcodec/xbmenc.c b/libavcodec/xbmenc.c index a752bdf2a73..b25615f2a47 100644 --- a/libavcodec/xbmenc.c +++ b/libavcodec/xbmenc.c @@ -32,7 +32,7 @@ static int xbm_encode_frame(AVCodecContext *avctx, AVPacket *pkt, linesize = (avctx->width + 7) / 8; size = avctx->height * (linesize * 7 + 2) + 110; - if ((ret = ff_alloc_packet2(avctx, pkt, size)) < 0) + if ((ret = ff_alloc_packet2(avctx, pkt, size, 0)) < 0) return ret; buf = pkt->data;