aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aacps.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-24 10:59:43 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-24 10:59:43 +0100
commitf58f75dd92a5d8b48e23865f6d4a69ce70d0bd1c (patch)
tree1345408bddb30de183f5945cb3673262554f16bb /libavcodec/aacps.c
parentb222c28ee885187c5fcded69d8fa98fe60c70a7e (diff)
parentcb7190cd2c691fd93e4d3664f3fce6c19ee001dd (diff)
downloadffmpeg-f58f75dd92a5d8b48e23865f6d4a69ce70d0bd1c.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: rv34: error out on size changes with frame threading aacsbr: Add a debug check to sbr_mapping. aac: Reset some state variables when turning SBR off aac: Reset PS parameters on header decode failure. fate: add wmalossless test. aacsbr: handle m_max values smaller than 4. Conflicts: libavcodec/aacsbr.c tests/fate/lossless-audio.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aacps.c')
-rw-r--r--libavcodec/aacps.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/aacps.c b/libavcodec/aacps.c
index 3b5aa58109..c2afec0af5 100644
--- a/libavcodec/aacps.c
+++ b/libavcodec/aacps.c
@@ -275,6 +275,10 @@ int ff_ps_read_data(AVCodecContext *avctx, GetBitContext *gb_host, PSContext *ps
err:
ps->start = 0;
skip_bits_long(gb_host, bits_left);
+ memset(ps->iid_par, 0, sizeof(ps->iid_par));
+ memset(ps->icc_par, 0, sizeof(ps->icc_par));
+ memset(ps->ipd_par, 0, sizeof(ps->ipd_par));
+ memset(ps->opd_par, 0, sizeof(ps->opd_par));
return bits_left;
}