[FFmpeg-cvslog] v408enc: switch to ff_alloc_packet2().

Michael Niedermayer git at videolan.org
Thu Mar 22 19:10:40 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 22 15:00:49 2012 +0100| [efc245b9d6f4d76d206b7105a9b6a663d7deaef4] | committer: Michael Niedermayer

v408enc: 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=efc245b9d6f4d76d206b7105a9b6a663d7deaef4
---

 libavcodec/v408enc.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/libavcodec/v408enc.c b/libavcodec/v408enc.c
index caa0bb8..39b16a6 100644
--- a/libavcodec/v408enc.c
+++ b/libavcodec/v408enc.c
@@ -43,8 +43,7 @@ static int v408_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     uint8_t *y, *u, *v, *a;
     int i, j, ret;
 
-    if ((ret = ff_alloc_packet(pkt, avctx->width * avctx->height * 4)) < 0) {
-        av_log(avctx, AV_LOG_ERROR, "Out buffer is too small.\n");
+    if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 4)) < 0) {
         return ret;
     }
     dst = pkt->data;



More information about the ffmpeg-cvslog mailing list