diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-11-07 14:55:35 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-11-07 14:55:35 +0000 |
commit | 9521236881cbb04c6e6c75d01cd5be5c25085b33 (patch) | |
tree | a553accaed953325c13e3c134f64b6626fae5474 /libavcodec/libfdk-aacdec.c | |
parent | 315e3cf047cf8151c53113f87699b3358406edfa (diff) | |
download | ffmpeg-9521236881cbb04c6e6c75d01cd5be5c25085b33.tar.gz |
avcodec/libfdk-aacdec: remove redundant log messages
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/libfdk-aacdec.c')
-rw-r--r-- | libavcodec/libfdk-aacdec.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavcodec/libfdk-aacdec.c b/libavcodec/libfdk-aacdec.c index bc3802c5c3..c833a98a82 100644 --- a/libavcodec/libfdk-aacdec.c +++ b/libavcodec/libfdk-aacdec.c @@ -229,10 +229,8 @@ static int fdk_aac_decode_frame(AVCodecContext *avctx, void *data, if (s->initialized) { frame->nb_samples = avctx->frame_size; - if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) { - av_log(avctx, AV_LOG_ERROR, "ff_get_buffer() failed\n"); + if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) return ret; - } buf = frame->extended_data[0]; buf_size = avctx->channels * frame->nb_samples * av_get_bytes_per_sample(avctx->sample_fmt); @@ -264,10 +262,8 @@ static int fdk_aac_decode_frame(AVCodecContext *avctx, void *data, if (tmpptr) { frame->nb_samples = avctx->frame_size; - if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) { - av_log(avctx, AV_LOG_ERROR, "ff_get_buffer() failed\n"); + if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) goto end; - } memcpy(frame->extended_data[0], tmpptr, avctx->channels * avctx->frame_size * av_get_bytes_per_sample(avctx->sample_fmt)); |