Revision d23e3e5f libavcodec/wmv2.c

View differences:

libavcodec/wmv2.c
102 102
    if(s->flags&CODEC_FLAG_EMU_EDGE){
103 103
        if(src_x<1 || src_y<1 || src_x + 17  >= s->h_edge_pos
104 104
                              || src_y + h+1 >= v_edge_pos){
105
            ff_emulated_edge_mc(s->edge_emu_buffer, ptr - 1 - s->linesize, s->linesize, 19, 19,
105
            s->dsp.emulated_edge_mc(s->edge_emu_buffer, ptr - 1 - s->linesize, s->linesize, 19, 19,
106 106
                             src_x-1, src_y-1, s->h_edge_pos, s->v_edge_pos);
107 107
            ptr= s->edge_emu_buffer + 1 + s->linesize;
108 108
            emu=1;
......
143 143
    offset = (src_y * uvlinesize) + src_x;
144 144
    ptr = ref_picture[1] + offset;
145 145
    if(emu){
146
        ff_emulated_edge_mc(s->edge_emu_buffer, ptr, s->uvlinesize, 9, 9,
146
        s->dsp.emulated_edge_mc(s->edge_emu_buffer, ptr, s->uvlinesize, 9, 9,
147 147
                         src_x, src_y, s->h_edge_pos>>1, s->v_edge_pos>>1);
148 148
        ptr= s->edge_emu_buffer;
149 149
    }
......
151 151

  
152 152
    ptr = ref_picture[2] + offset;
153 153
    if(emu){
154
        ff_emulated_edge_mc(s->edge_emu_buffer, ptr, s->uvlinesize, 9, 9,
154
        s->dsp.emulated_edge_mc(s->edge_emu_buffer, ptr, s->uvlinesize, 9, 9,
155 155
                         src_x, src_y, s->h_edge_pos>>1, s->v_edge_pos>>1);
156 156
        ptr= s->edge_emu_buffer;
157 157
    }

Also available in: Unified diff