diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-26 01:16:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-26 01:21:43 +0200 |
commit | d3788558b00084aa3e7bae2d76f668de5db05341 (patch) | |
tree | 5db7f82938782b102c6ffd8504d9368320b1c27f | |
parent | 73215fe30af4b1c022b9959b6677c5c49f3e3caa (diff) | |
download | ffmpeg-d3788558b00084aa3e7bae2d76f668de5db05341.tar.gz |
avcodec/cllc: Fix clobbered ff_get_buffer() change
Issue-since: 9328ae484338b70a7f2dbcd420bbbac499df76cc
Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/cllc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/cllc.c b/libavcodec/cllc.c index 797d07b8ee..ab8d46aa52 100644 --- a/libavcodec/cllc.c +++ b/libavcodec/cllc.c @@ -410,11 +410,8 @@ static int cllc_decode_frame(AVCodecContext *avctx, void *data, avctx->pix_fmt = AV_PIX_FMT_YUV422P; avctx->bits_per_raw_sample = 8; - ret = ff_get_buffer(avctx, pic, 0); - if (ret < 0) { - av_log(avctx, AV_LOG_ERROR, "Could not allocate buffer.\n"); + if ((ret = ff_get_buffer(avctx, pic, 0)) < 0) return ret; - } ret = decode_yuv_frame(ctx, &gb, pic); if (ret < 0) |