summaryrefslogtreecommitdiffstats
path: root/libavcodec/xbmenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/xbmenc.c')
-rw-r--r--libavcodec/xbmenc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/xbmenc.c b/libavcodec/xbmenc.c
index 2df6ae0..bade9e7 100644
--- a/libavcodec/xbmenc.c
+++ b/libavcodec/xbmenc.c
@@ -41,10 +41,8 @@ static int xbm_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
linesize = (avctx->width + 7) / 8;
size = avctx->height * (linesize * 7 + 2) + 110;
- if ((ret = ff_alloc_packet(pkt, size)) < 0) {
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
+ if ((ret = ff_alloc_packet2(avctx, pkt, size)) < 0)
return ret;
- }
buf = pkt->data;
ptr = p->data[0];
OpenPOWER on IntegriCloud