# HG changeset patch # User alexc # Date 1234497075 0 # Node ID d23db4a449edd209553681aab135c7024007ddcf # Parent 1dae64d3a6ff20817b3b582da2b8f90481131ba1 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 diff -r 1dae64d3a6ff -r d23db4a449ed adtsenc.c --- 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) {