# HG changeset patch # User ramiro # Date 1240080870 0 # Node ID dc643c3c285e1ca4b3685ad66e13c62c219405db # Parent 1997b5b2a40e5cdf10e528a519b56540e82e5013 mlpdec: Make read_matrix_params() take unsigned int substr for consistency. diff -r 1997b5b2a40e -r dc643c3c285e mlpdec.c --- 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; }