diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-04-21 13:19:32 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-04-21 13:19:32 +0000 |
commit | 77e794908b18c9598ed3937af00e74c01014bbd9 (patch) | |
tree | 394c4b0a80df57da75a566863494e1130e91653b | |
parent | 8f9a3817d502a46e1349befac24c7d2311df4e12 (diff) | |
download | ffmpeg-77e794908b18c9598ed3937af00e74c01014bbd9.tar.gz |
avcodec/hq_hqa: remove superfluous log message
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/hq_hqa.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavcodec/hq_hqa.c b/libavcodec/hq_hqa.c index b2b2c3dbc6..388c63e4fa 100644 --- a/libavcodec/hq_hqa.c +++ b/libavcodec/hq_hqa.c @@ -134,10 +134,8 @@ static int hq_decode_frame(HQContext *ctx, AVFrame *pic, ctx->avctx->pix_fmt = AV_PIX_FMT_YUV422P; ret = ff_get_buffer(ctx->avctx, pic, 0); - if (ret < 0) { - av_log(ctx->avctx, AV_LOG_ERROR, "Could not allocate buffer.\n"); + if (ret < 0) return ret; - } /* Offsets are stored from CUV position, so adjust them accordingly. */ for (i = 0; i < profile->num_slices + 1; i++) @@ -264,10 +262,8 @@ static int hqa_decode_frame(HQContext *ctx, AVFrame *pic, size_t data_size) } ret = ff_get_buffer(ctx->avctx, pic, 0); - if (ret < 0) { - av_log(ctx->avctx, AV_LOG_ERROR, "Could not allocate buffer.\n"); + if (ret < 0) return ret; - } /* Offsets are stored from HQA1 position, so adjust them accordingly. */ for (i = 0; i < num_slices + 1; i++) |