diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:31:18 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:40:58 +0100 |
commit | 179a592094b070e2069a2c194c2c659b0516a9f5 (patch) | |
tree | df6659ab42cfe04f4ab20470bea4611e2dbdfb9a | |
parent | 532f1c7aa7390af5e5de2892481041000e4d872b (diff) | |
download | ffmpeg-179a592094b070e2069a2c194c2c659b0516a9f5.tar.gz |
libutvideoenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/libutvideoenc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/libutvideoenc.cpp b/libavcodec/libutvideoenc.cpp index 564ece209a..dccfa6b807 100644 --- a/libavcodec/libutvideoenc.cpp +++ b/libavcodec/libutvideoenc.cpp @@ -130,8 +130,7 @@ static int utvideo_encode_frame(AVCodecContext *avctx, AVPacket *pkt, uint8_t *dst; /* Alloc buffer */ - if ((ret = ff_alloc_packet(pkt, utv->buf_size)) < 0) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n"); + if ((ret = ff_alloc_packet2(avctx, pkt, utv->buf_size)) < 0) { return ret; } |