From 571309181859b1aad0b971327e1786783b52adaf Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 21 Oct 2012 20:48:21 +0200 Subject: [PATCH] mpegaudiodec: Fix buffer handling on random access Signed-off-by: Michael Niedermayer --- libavcodec/mpegaudiodec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index 77f86c5549..5a39bdce33 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -1416,6 +1416,7 @@ static int mp_decode_layer3(MPADecodeContext *s) g = &s->granules[ch][gr]; s->last_buf_size += g->part2_3_length; 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;