Commit f04b7ae8 authored by alexc's avatar alexc

Report the illegal audio object type, not it offset by 1.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17198 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3585f7b1
......@@ -42,7 +42,7 @@ static int decode_extradata(AVFormatContext *s, ADTSContext *adts, uint8_t *buf,
adts->channel_conf = get_bits(&gb, 4);
if (adts->objecttype > 3) {
av_log(s, AV_LOG_ERROR, "MPEG-4 AOT %d is not allowed in ADTS\n", adts->objecttype);
av_log(s, AV_LOG_ERROR, "MPEG-4 AOT %d is not allowed in ADTS\n", adts->objecttype+1);
return -1;
}
if (adts->sample_rate_index == 15) {
......
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