From ecc3a139b8858553e4ec8b3f4dd04510c6c94b03 Mon Sep 17 00:00:00 2001 From: Alex Converse Date: Fri, 13 Feb 2009 03:51:15 +0000 Subject: Report the illegal audio object type, not it offset by 1. Discussed and OKed at http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/2009-February/019860.html Originally committed as revision 17198 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/adtsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/adtsenc.c') diff --git a/libavformat/adtsenc.c b/libavformat/adtsenc.c index 38a61406df..dffa1b1f6c 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) { -- cgit v1.2.3