Commit 4a8ec021 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/avuienc: Use ff_alloc_packet2()

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent a0044bec
......@@ -62,7 +62,7 @@ static int avui_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
skip = 16;
}
size = 2 * avctx->width * (avctx->height + skip) + 8 * interlaced;
if ((ret = ff_alloc_packet(pkt, size)) < 0)
if ((ret = ff_alloc_packet2(avctx, pkt, size, size)) < 0)
return ret;
dst = pkt->data;
if (!interlaced) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment