Skip to content

Commit ac7d0c7

Browse files
committed
mp3dec: ask for 8khz switch point mp3s
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
1 parent a96e3a3 commit ac7d0c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libavcodec/mpegaudiodec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ static void ff_compute_band_indexes(MPADecodeContext *s, GranuleDef *g)
205205
{
206206
if (g->block_type == 2) {
207207
if (g->switch_point) {
208+
if(s->sample_rate_index == 8)
209+
av_log_ask_for_sample(s->avctx, "switch point in 8khz\n");
208210
/* if switched mode, we handle the 36 first samples as
209211
long blocks. For 8000Hz, we handle the 72 first
210212
exponents as long blocks */

0 commit comments

Comments
 (0)