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

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


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

v210enc: 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=e252fb822a206195ab6dfc5c87bd4c292cbe311b
---

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

diff --git a/libavcodec/v210enc.c b/libavcodec/v210enc.c
index 93fa2d8..fd544bf 100644
--- a/libavcodec/v210enc.c
+++ b/libavcodec/v210enc.c
@@ -57,8 +57,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     const uint16_t *v = (const uint16_t*)pic->data[2];
     PutByteContext p;
 
-    if ((ret = ff_alloc_packet(pkt, avctx->height * stride)) < 0) {
-        av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
+    if ((ret = ff_alloc_packet2(avctx, pkt, avctx->height * stride)) < 0) {
         return ret;
     }
 



More information about the ffmpeg-cvslog mailing list