mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/libfdk-aacdec: remove redundant log messages
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
315e3cf047
commit
9521236881
|
@ -229,10 +229,8 @@ static int fdk_aac_decode_frame(AVCodecContext *avctx, void *data,
|
||||||
|
|
||||||
if (s->initialized) {
|
if (s->initialized) {
|
||||||
frame->nb_samples = avctx->frame_size;
|
frame->nb_samples = avctx->frame_size;
|
||||||
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) {
|
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
|
||||||
av_log(avctx, AV_LOG_ERROR, "ff_get_buffer() failed\n");
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
|
||||||
buf = frame->extended_data[0];
|
buf = frame->extended_data[0];
|
||||||
buf_size = avctx->channels * frame->nb_samples *
|
buf_size = avctx->channels * frame->nb_samples *
|
||||||
av_get_bytes_per_sample(avctx->sample_fmt);
|
av_get_bytes_per_sample(avctx->sample_fmt);
|
||||||
|
@ -264,10 +262,8 @@ static int fdk_aac_decode_frame(AVCodecContext *avctx, void *data,
|
||||||
|
|
||||||
if (tmpptr) {
|
if (tmpptr) {
|
||||||
frame->nb_samples = avctx->frame_size;
|
frame->nb_samples = avctx->frame_size;
|
||||||
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) {
|
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
|
||||||
av_log(avctx, AV_LOG_ERROR, "ff_get_buffer() failed\n");
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
|
||||||
memcpy(frame->extended_data[0], tmpptr,
|
memcpy(frame->extended_data[0], tmpptr,
|
||||||
avctx->channels * avctx->frame_size *
|
avctx->channels * avctx->frame_size *
|
||||||
av_get_bytes_per_sample(avctx->sample_fmt));
|
av_get_bytes_per_sample(avctx->sample_fmt));
|
||||||
|
|
Loading…
Reference in New Issue