Commit 93aafe2a authored by Michael Niedermayer's avatar Michael Niedermayer

nellymoserenc: switch to ff_alloc_packet2().

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6e3aee03
...@@ -401,8 +401,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *avpkt, ...@@ -401,8 +401,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
s->last_frame = 1; s->last_frame = 1;
} }
if ((ret = ff_alloc_packet(avpkt, NELLY_BLOCK_LEN))) { if ((ret = ff_alloc_packet2(avctx, avpkt, NELLY_BLOCK_LEN))) {
av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
return ret; return ret;
} }
encode_block(s, avpkt->data, avpkt->size); encode_block(s, avpkt->data, avpkt->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