Mercurial > libavcodec.hg
changeset 9504:dc643c3c285e libavcodec
mlpdec: Make read_matrix_params() take unsigned int substr for consistency.
author | ramiro |
---|---|
date | Sat, 18 Apr 2009 18:54:30 +0000 |
parents | 1997b5b2a40e |
children | bcef741a555a |
files | mlpdec.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mlpdec.c Sat Apr 18 18:51:43 2009 +0000 +++ b/mlpdec.c Sat Apr 18 18:54:30 2009 +0000 @@ -507,8 +507,9 @@ /** Read parameters for primitive matrices. */ -static int read_matrix_params(MLPDecodeContext *m, SubStream *s, GetBitContext *gbp) +static int read_matrix_params(MLPDecodeContext *m, unsigned int substr, GetBitContext *gbp) { + SubStream *s = &m->substream[substr]; unsigned int mat, ch; if (m->matrix_changed++ > 1) { @@ -638,7 +639,7 @@ if (s->param_presence_flags & PARAM_MATRIX) if (get_bits1(gbp)) { - if (read_matrix_params(m, s, gbp) < 0) + if (read_matrix_params(m, substr, gbp) < 0) return -1; }