Mercurial > libavcodec.hg
diff aac.c @ 8812:541889e539b8 libavcodec
Add support for sample rate index 12, 7350 Hz
Patch by Alex Converse ( alex converse gmail com )
author | superdump |
---|---|
date | Thu, 12 Feb 2009 13:31:43 +0000 |
parents | 464c36527303 |
children | 13db7a524778 |
line wrap: on
line diff
--- a/aac.c Thu Feb 12 13:22:41 2009 +0000 +++ b/aac.c Thu Feb 12 13:31:43 2009 +0000 @@ -173,7 +173,7 @@ skip_bits(gb, 2); // object_type sampling_index = get_bits(gb, 4); - if(sampling_index > 11) { + if(sampling_index > 12) { av_log(ac->avccontext, AV_LOG_ERROR, "invalid sampling rate index %d\n", ac->m4ac.sampling_index); return -1; } @@ -326,7 +326,7 @@ if((i = ff_mpeg4audio_get_config(&ac->m4ac, data, data_size)) < 0) return -1; - if(ac->m4ac.sampling_index > 11) { + if(ac->m4ac.sampling_index > 12) { av_log(ac->avccontext, AV_LOG_ERROR, "invalid sampling rate index %d\n", ac->m4ac.sampling_index); return -1; } @@ -1555,7 +1555,7 @@ av_log(avccontext, AV_LOG_ERROR, "Error decoding AAC frame header.\n"); return -1; } - if (ac->m4ac.sampling_index > 11) { + if (ac->m4ac.sampling_index > 12) { av_log(ac->avccontext, AV_LOG_ERROR, "invalid sampling rate index %d\n", ac->m4ac.sampling_index); return -1; }