Commit 7e9cd4e1 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/libwebpenc: Use ff_alloc_packet2()

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 06f26598
......@@ -57,7 +57,7 @@ static int libwebp_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
goto end;
}
ret = ff_alloc_packet(pkt, mw.size);
ret = ff_alloc_packet2(avctx, pkt, mw.size, mw.size);
if (ret < 0)
goto end;
memcpy(pkt->data, mw.mem, mw.size);
......
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