mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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
This commit is contained in:
parent
b6188c5a55
commit
ecc3a139b8
@ -42,7 +42,7 @@ static int decode_extradata(AVFormatContext *s, ADTSContext *adts, uint8_t *buf,
|
|||||||
adts->channel_conf = get_bits(&gb, 4);
|
adts->channel_conf = get_bits(&gb, 4);
|
||||||
|
|
||||||
if (adts->objecttype > 3) {
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
if (adts->sample_rate_index == 15) {
|
if (adts->sample_rate_index == 15) {
|
||||||
|
Loading…
Reference in New Issue
Block a user