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:22 +0100 |
commit | 5d8a20a1c53187360aaad70e95d8c3fbe6db169a (patch) | |
tree | b7037c94f336be8a915209f94daeda83dbea6756 /libavcodec/xbmenc.c | |
parent | 6cb29a1ab0e466fb1183e8f9b84bc5fb5631fcaf (diff) | |
download | ffmpeg-5d8a20a1c53187360aaad70e95d8c3fbe6db169a.tar.gz |
xbmenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/xbmenc.c')
-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; } |