[FFmpeg-cvslog] rawenc: : switch to ff_alloc_packet2()

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


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 22 04:26:07 2012 +0100| [57c52663b613f86294ded5dccfd15f73ddfe3c44] | committer: Michael Niedermayer

rawenc: : 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=57c52663b613f86294ded5dccfd15f73ddfe3c44
---

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

diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c
index cb491e9..7f5f7d6 100644
--- a/libavcodec/rawenc.c
+++ b/libavcodec/rawenc.c
@@ -49,7 +49,7 @@ static int raw_encode(AVCodecContext *avctx, AVPacket *pkt,
     if (ret < 0)
         return ret;
 
-    if ((ret = ff_alloc_packet(pkt, ret)) < 0)
+    if ((ret = ff_alloc_packet2(avctx, pkt, ret)) < 0)
         return ret;
     if ((ret = avpicture_layout((const AVPicture *)frame, avctx->pix_fmt, avctx->width,
                                 avctx->height, pkt->data, pkt->size)) < 0)



More information about the ffmpeg-cvslog mailing list