diff options
author | Alex Converse <alex.converse@gmail.com> | 2009-02-13 03:51:15 +0000 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2009-02-13 03:51:15 +0000 |
commit | ecc3a139b8858553e4ec8b3f4dd04510c6c94b03 (patch) | |
tree | f0f0b9bec0657ecb074c5b33dbec18d3fff3ddd3 /libavformat/adtsenc.c | |
parent | b6188c5a55ca219b4602f770e3e76cab95bad6d0 (diff) | |
download | ffmpeg-ecc3a139b8858553e4ec8b3f4dd04510c6c94b03.tar.gz |
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
Diffstat (limited to 'libavformat/adtsenc.c')
-rw-r--r-- | libavformat/adtsenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |