summaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegaudiodec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-21 20:48:21 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-21 20:59:08 +0200
commit571309181859b1aad0b971327e1786783b52adaf (patch)
treedbcefaaf01e966c7318a4a7cd852eaea182708d6 /libavcodec/mpegaudiodec.c
parente168165489fedf8c21fec1aab950c6e1bc7a2104 (diff)
downloadffmpeg-streaming-571309181859b1aad0b971327e1786783b52adaf.zip
ffmpeg-streaming-571309181859b1aad0b971327e1786783b52adaf.tar.gz
mpegaudiodec: Fix buffer handling on random access
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegaudiodec.c')
-rw-r--r--libavcodec/mpegaudiodec.c1
1 files changed, 1 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud