summaryrefslogtreecommitdiff
path: root/libavcodec/nellymoserenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 15:00:48 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 19:03:21 +0100
commit93aafe2a3955a485f350d632be30b26da816faa8 (patch)
tree309305deb85f670833f27af29787b0fe7ff5a1f5 /libavcodec/nellymoserenc.c
parent6e3aee03b8584fbc2e16e3dd4f13c0161d43792f (diff)
downloadffmpeg-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.c3
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);