Revision 50c21814

View differences:

libavcodec/h264.c
2164 2164
    dst->mvd_table[1]             = src->mvd_table[1];
2165 2165
    dst->direct_table             = src->direct_table;
2166 2166

  
2167
    if(!dst->dequant4_coeff[0])
2168
        init_dequant_tables(dst);
2169 2167
    dst->s.obmc_scratchpad = NULL;
2170 2168
    ff_h264_pred_init(&dst->hpc, src->s.codec_id);
2171
    dst->dequant_coeff_pps= -1;
2172 2169
}
2173 2170

  
2174 2171
/**
......
3522 3519
    memcpy(dst->long_ref,         src->long_ref,         sizeof(dst->long_ref));
3523 3520
    memcpy(dst->default_ref_list, src->default_ref_list, sizeof(dst->default_ref_list));
3524 3521
    memcpy(dst->ref_list,         src->ref_list,         sizeof(dst->ref_list));
3522

  
3523
    memcpy(dst->dequant4_coeff,   src->dequant4_coeff,   sizeof(src->dequant4_coeff));
3524
    memcpy(dst->dequant8_coeff,   src->dequant8_coeff,   sizeof(src->dequant8_coeff));
3525 3525
}
3526 3526

  
3527 3527
/**
......
3589 3589
    }
3590 3590
    h->sps = *h0->sps_buffers[h->pps.sps_id];
3591 3591

  
3592
    if(h->dequant_coeff_pps != pps_id){
3592
    if(h == h0 && h->dequant_coeff_pps != pps_id){
3593 3593
        h->dequant_coeff_pps = pps_id;
3594 3594
        init_dequant_tables(h);
3595 3595
    }

Also available in: Unified diff