nellymoserenc: switch to ff_alloc_packet2().

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-03-22 15:00:48 +01:00
parent 6e3aee03b8
commit 93aafe2a39
1 changed files with 1 additions and 2 deletions

View File

@ -401,8 +401,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
s->last_frame = 1;
}
if ((ret = ff_alloc_packet(avpkt, NELLY_BLOCK_LEN))) {
av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
if ((ret = ff_alloc_packet2(avctx, avpkt, NELLY_BLOCK_LEN))) {
return ret;
}
encode_block(s, avpkt->data, avpkt->size);