Revision 284b041b

View differences:

libavcodec/ps.c
156 156
    if (header) {     //enable_ps_header
157 157
        ps->enable_iid = get_bits1(gb);
158 158
        if (ps->enable_iid) {
159
            ps->iid_mode = get_bits(gb, 3);
160
            if (ps->iid_mode > 5) {
159
            int iid_mode = get_bits(gb, 3);
160
            if (iid_mode > 5) {
161 161
                av_log(avctx, AV_LOG_ERROR, "iid_mode %d is reserved.\n",
162
                       ps->iid_mode);
162
                       iid_mode);
163 163
                goto err;
164 164
            }
165
            ps->nr_iid_par    = nr_iidicc_par_tab[ps->iid_mode];
166
            ps->iid_quant     = ps->iid_mode > 2;
167
            ps->nr_ipdopd_par = nr_iidopd_par_tab[ps->iid_mode];
165
            ps->nr_iid_par    = nr_iidicc_par_tab[iid_mode];
166
            ps->iid_quant     = iid_mode > 2;
167
            ps->nr_ipdopd_par = nr_iidopd_par_tab[iid_mode];
168 168
        }
169 169
        ps->enable_icc = get_bits1(gb);
170 170
        if (ps->enable_icc) {
libavcodec/ps.h
37 37
typedef struct {
38 38
    int    start;
39 39
    int    enable_iid;
40
    int    iid_mode;
41 40
    int    iid_quant;
42 41
    int    nr_iid_par;
43 42
    int    nr_ipdopd_par;

Also available in: Unified diff