diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 15:00:48 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:21 +0100 |
commit | 93aafe2a3955a485f350d632be30b26da816faa8 (patch) | |
tree | 309305deb85f670833f27af29787b0fe7ff5a1f5 /libavcodec/nellymoserenc.c | |
parent | 6e3aee03b8584fbc2e16e3dd4f13c0161d43792f (diff) | |
download | ffmpeg-93aafe2a3955a485f350d632be30b26da816faa8.tar.gz |
nellymoserenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/nellymoserenc.c')
-rw-r--r-- | libavcodec/nellymoserenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c index 8c0038a8f7..9587fe3a2b 100644 --- a/libavcodec/nellymoserenc.c +++ b/libavcodec/nellymoserenc.c @@ -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); |