mpegaudiodec: Fix buffer handling on random access
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 21 Oct 2012 18:48:21 +0000 (20:48 +0200)
committerDiego Biurrun <diego@biurrun.de>
Tue, 23 Oct 2012 08:52:25 +0000 (10:52 +0200)
libavcodec/mpegaudiodec.c

index 9c5ef26..d08177e 100644 (file)
@@ -1398,6 +1398,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;