]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Report the illegal audio object type, not it offset by 1.
authoralexc <alexc@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 13 Feb 2009 03:51:15 +0000 (03:51 +0000)
committeralexc <alexc@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 13 Feb 2009 03:51:15 +0000 (03:51 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17198 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/adtsenc.c

index 38a61406df724b3cee99b08e036e3ea707883f99..dffa1b1f6cbde7aaf12e45cc463ad9d9a74e188c 100644 (file)
@@ -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) {