mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-09 14:07:31 +02:00
mpegaudiodec: Fix buffer handling on random access
This commit is contained in:
parent
2f17f265ed
commit
ec444c84cf
@ -1398,6 +1398,7 @@ static int mp_decode_layer3(MPADecodeContext *s)
|
|||||||
g = &s->granules[ch][gr];
|
g = &s->granules[ch][gr];
|
||||||
s->last_buf_size += g->part2_3_length;
|
s->last_buf_size += g->part2_3_length;
|
||||||
memset(g->sb_hybrid, 0, sizeof(g->sb_hybrid));
|
memset(g->sb_hybrid, 0, sizeof(g->sb_hybrid));
|
||||||
|
compute_imdct(s, g, &s->sb_samples[ch][18 * gr][0], s->mdct_buf[ch]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
skip = s->last_buf_size - 8 * main_data_begin;
|
skip = s->last_buf_size - 8 * main_data_begin;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user