From f04b7ae80df74c6262f29ace27bcc640ac587fa7 Mon Sep 17 00:00:00 2001 From: alexc Date: Fri, 13 Feb 2009 03:51:15 +0000 Subject: [PATCH] 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 --- libavformat/adtsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/adtsenc.c b/libavformat/adtsenc.c index 38a61406d..dffa1b1f6 100644 --- a/libavformat/adtsenc.c +++ b/libavformat/adtsenc.c @@ -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) { -- 2.39.2