Revision d23077af libavcodec/ps.c

View differences:

libavcodec/ps.c
235 235
        //Create a fake envelope
236 236
        int source = ps->num_env ? ps->num_env - 1 : ps->num_env_old - 1;
237 237
        if (source >= 0 && source != ps->num_env) {
238
            if (ps->enable_iid && ps->num_env_old > 1) {
238
            if (ps->enable_iid) {
239 239
                memcpy(ps->iid_par+ps->num_env, ps->iid_par+source, sizeof(ps->iid_par[0]));
240 240
            }
241
            if (ps->enable_icc && ps->num_env_old > 1) {
241
            if (ps->enable_icc) {
242 242
                memcpy(ps->icc_par+ps->num_env, ps->icc_par+source, sizeof(ps->icc_par[0]));
243 243
            }
244
            if (ps->enable_ipdopd && ps->num_env_old > 1) {
244
            if (ps->enable_ipdopd) {
245 245
                memcpy(ps->ipd_par+ps->num_env, ps->ipd_par+source, sizeof(ps->ipd_par[0]));
246 246
                memcpy(ps->opd_par+ps->num_env, ps->opd_par+source, sizeof(ps->opd_par[0]));
247 247
            }

Also available in: Unified diff