Module: libav
Branch: master
Commit: ec444c84cfd30ef34a4e7b4ec7ee77d7e5250d25

Author:    Michael Niedermayer <[email protected]>
Committer: Diego Biurrun <[email protected]>
Date:      Sun Oct 21 20:48:21 2012 +0200

mpegaudiodec: Fix buffer handling on random access

---

 libavcodec/mpegaudiodec.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index 9c5ef26..d08177e 100644
--- a/libavcodec/mpegaudiodec.c
+++ b/libavcodec/mpegaudiodec.c
@@ -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;

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to