diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 15:00:50 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:23 +0100 |
commit | 2bd303f95c0d689be777625332be20ed91bfb0a8 (patch) | |
tree | d180f18b78ebc6e3cb303b996709a816ad12f84f /libavcodec | |
parent | ae7f0d0a4f632ef912c4f9a4cccb973654127ebe (diff) | |
download | ffmpeg-2bd303f95c0d689be777625332be20ed91bfb0a8.tar.gz |
zmbvenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/zmbvenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c index a7fdc280a5..3453d69a82 100644 --- a/libavcodec/zmbvenc.c +++ b/libavcodec/zmbvenc.c @@ -228,8 +228,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, } pkt_size = c->zstream.total_out + 1 + 6*keyframe; - if ((ret = ff_alloc_packet(pkt, pkt_size)) < 0) { - av_log(avctx, AV_LOG_ERROR, "Error getting packet of size %d.\n", pkt_size); + if ((ret = ff_alloc_packet2(avctx, pkt, pkt_size)) < 0) { return ret; } buf = pkt->data; |