[FFmpeg-cvslog] mpegaudiodec: Fix buffer handling on random access

Michael Niedermayer git at videolan.org
Sun Oct 21 21:06:46 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Oct 21 20:48:21 2012 +0200| [571309181859b1aad0b971327e1786783b52adaf] | committer: Michael Niedermayer

mpegaudiodec: Fix buffer handling on random access

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=571309181859b1aad0b971327e1786783b52adaf
---

 libavcodec/mpegaudiodec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index 77f86c5..5a39bdc 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;



More information about the ffmpeg-cvslog mailing list