aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-21 20:48:21 +0200
committerDiego Biurrun <diego@biurrun.de>2012-10-23 10:52:25 +0200
commitec444c84cfd30ef34a4e7b4ec7ee77d7e5250d25 (patch)
treeb426cf2bca44e01f5b137ba3f1c4cfe598dbf33d
parent2f17f265ed79766a561ed6542509f5b665658a7c (diff)
downloadffmpeg-ec444c84cfd30ef34a4e7b4ec7ee77d7e5250d25.tar.gz
mpegaudiodec: Fix buffer handling on random access
-rw-r--r--libavcodec/mpegaudiodec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index 9c5ef265c1..d08177e9eb 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;