summaryrefslogtreecommitdiff
path: root/libavcodec/zmbvenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 15:00:50 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 19:03:23 +0100
commit2bd303f95c0d689be777625332be20ed91bfb0a8 (patch)
treed180f18b78ebc6e3cb303b996709a816ad12f84f /libavcodec/zmbvenc.c
parentae7f0d0a4f632ef912c4f9a4cccb973654127ebe (diff)
zmbvenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/zmbvenc.c')
-rw-r--r--libavcodec/zmbvenc.c3
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;