Commit d7f29bfa authored by Andreas Cadhalpun's avatar Andreas Cadhalpun Committed by Rostislav Pehlivanov

aacdec: don't return frames without data from aac_decode_er_frame

This is similar to commit ec38a1ba for aac_decode_frame_int.
Signed-off-by: 's avatarAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent ef7fe985
......@@ -2901,6 +2901,11 @@ static int aac_decode_er_frame(AVCodecContext *avctx, void *data,
spectral_to_sample(ac, samples);
if (!ac->frame->data[0] && samples) {
av_log(avctx, AV_LOG_ERROR, "no frame data found\n");
return AVERROR_INVALIDDATA;
}
ac->frame->nb_samples = samples;
ac->frame->sample_rate = avctx->sample_rate;
*got_frame_ptr = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment