Commit 660e8cb9 authored by Michael Niedermayer's avatar Michael Niedermayer

libx264: switch to ff_alloc_packet2().

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 316defa9
...@@ -101,7 +101,7 @@ static int encode_nals(AVCodecContext *ctx, AVPacket *pkt, ...@@ -101,7 +101,7 @@ static int encode_nals(AVCodecContext *ctx, AVPacket *pkt,
for (i = 0; i < nnal; i++) for (i = 0; i < nnal; i++)
size += nals[i].i_payload; size += nals[i].i_payload;
if ((ret = ff_alloc_packet(pkt, size)) < 0) if ((ret = ff_alloc_packet2(ctx, pkt, size)) < 0)
return ret; return ret;
p = pkt->data; p = pkt->data;
......
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