[FFmpeg-cvslog] nellymoserenc: switch to ff_alloc_packet2().
Michael Niedermayer
git at videolan.org
Thu Mar 22 19:10:32 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 22 15:00:48 2012 +0100| [93aafe2a3955a485f350d632be30b26da816faa8] | committer: Michael Niedermayer
nellymoserenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=93aafe2a3955a485f350d632be30b26da816faa8
---
libavcodec/nellymoserenc.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c
index 8c0038a..9587fe3 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);
More information about the ffmpeg-cvslog
mailing list