Revision c009df3f libavcodec/wmv2.c

View differences:

libavcodec/wmv2.c
650 650
    if(s->flags&CODEC_FLAG_EMU_EDGE){
651 651
        if(src_x<1 || src_y<1 || src_x + 17  >= s->h_edge_pos
652 652
                              || src_y + h+1 >= v_edge_pos){
653
            ff_emulated_edge_mc(s, ptr - 1 - s->linesize, s->linesize, 19, 19, 
653
            ff_emulated_edge_mc(s->emu_edge_buffer, ptr - 1 - s->linesize, s->linesize, 19, 19, 
654 654
                             src_x-1, src_y-1, s->h_edge_pos, s->v_edge_pos);
655 655
            ptr= s->edge_emu_buffer + 1 + s->linesize;
656 656
            emu=1;
......
691 691
    offset = (src_y * uvlinesize) + src_x;
692 692
    ptr = ref_picture[1] + offset;
693 693
    if(emu){
694
        ff_emulated_edge_mc(s, ptr, s->uvlinesize, 9, 9, 
694
        ff_emulated_edge_mc(s->edge_emu_buffer, ptr, s->uvlinesize, 9, 9, 
695 695
                         src_x, src_y, s->h_edge_pos>>1, s->v_edge_pos>>1);
696 696
        ptr= s->edge_emu_buffer;
697 697
    }
......
699 699

  
700 700
    ptr = ref_picture[2] + offset;
701 701
    if(emu){
702
        ff_emulated_edge_mc(s, ptr, s->uvlinesize, 9, 9, 
702
        ff_emulated_edge_mc(s->edge_emu_buffer, ptr, s->uvlinesize, 9, 9, 
703 703
                         src_x, src_y, s->h_edge_pos>>1, s->v_edge_pos>>1);
704 704
        ptr= s->edge_emu_buffer;
705 705
    }

Also available in: Unified diff