OSDN Git Service

mpegaudiodec: Fix buffer handling on random access
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 21 Oct 2012 18:48:21 +0000 (20:48 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 21 Oct 2012 18:59:08 +0000 (20:59 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpegaudiodec.c

index 77f86c5..5a39bdc 100644 (file)
@@ -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;