Revision 137c8468 libavcodec/rv10.c

View differences:

libavcodec/rv10.c
564 564
            return -1;
565 565
    }
566 566

  
567
    if(s->pict_type == B_TYPE){ //FIXME remove after cleaning mottion_val indexing
568
        memset(s->current_picture.motion_val[0], 0, sizeof(int16_t)*2*(s->mb_width*2+2)*(s->mb_height*2+2));
569
    }
570

  
571 567
#ifdef DEBUG
572 568
    printf("qscale=%d\n", s->qscale);
573 569
#endif
......
600 596
    s->block_wrap[0]=
601 597
    s->block_wrap[1]=
602 598
    s->block_wrap[2]=
603
    s->block_wrap[3]= s->mb_width*2 + 2;
599
    s->block_wrap[3]= s->b8_stride;
604 600
    s->block_wrap[4]=
605
    s->block_wrap[5]= s->mb_width + 2;
601
    s->block_wrap[5]= s->mb_stride;
606 602
    ff_init_block_index(s);
607 603
    /* decode each macroblock */
608 604

  
......
677 673
            return -1;
678 674
    }
679 675
    
680
    if(s->pict_type == B_TYPE){ //FIXME remove after cleaning mottion_val indexing
681
        memset(s->current_picture.motion_val[0], 0, sizeof(int16_t)*2*(s->mb_width*2+2)*(s->mb_height*2+2));
682
    }
683

  
684 676
    if(s->mb_y>=s->mb_height){
685 677
        MPV_frame_end(s);
686 678
    

Also available in: Unified diff