diff adtsenc.c @ 4468:d23db4a449ed libavformat

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
author alexc
date Fri, 13 Feb 2009 03:51:15 +0000
parents 1dae64d3a6ff
children 4398efc7417c
line wrap: on
line diff
--- a/adtsenc.c	Thu Feb 12 23:51:08 2009 +0000
+++ b/adtsenc.c	Fri Feb 13 03:51:15 2009 +0000
@@ -42,7 +42,7 @@
     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) {