diff options
-rw-r--r-- | libavcodec/xbmenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/xbmenc.c b/libavcodec/xbmenc.c index 2df6ae0d77..378a36c711 100644 --- a/libavcodec/xbmenc.c +++ b/libavcodec/xbmenc.c @@ -41,8 +41,7 @@ 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; } |