Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 22:31:18 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 22:40:58 +0400
commit179a592094b070e2069a2c194c2c659b0516a9f5 (patch)
treedf6659ab42cfe04f4ab20470bea4611e2dbdfb9a /libavcodec/libutvideoenc.cpp
parent532f1c7aa7390af5e5de2892481041000e4d872b (diff)
libutvideoenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libutvideoenc.cpp')
-rw-r--r--libavcodec/libutvideoenc.cpp3
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;
}