Revision 2952d13a

View differences:

libavcodec/mpeg12.c
497 497
        if (HAS_CBP(mb_type)) {
498 498
            s->dsp.clear_blocks(s->block[0]);
499 499

  
500
            if(!s->chroma_y_shift){
501
                s->dsp.clear_blocks(s->block[6]);
502
            }
503

  
504 500
            cbp = get_vlc2(&s->gb, mb_pat_vlc.table, MB_PAT_VLC_BITS, 1);
505 501
            if(mb_block_count > 6){
506 502
                 cbp<<= mb_block_count-6;
507 503
                 cbp |= get_bits(&s->gb, mb_block_count-6);
504
                 s->dsp.clear_blocks(s->block[6]);
508 505
            }
509 506
            if (cbp <= 0){
510 507
                av_log(s->avctx, AV_LOG_ERROR, "invalid cbp at %d %d\n", s->mb_x, s->mb_y);

Also available in: Unified diff