Commit dcc7686a authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpegvideo: drop emu edge check from chroma_4mv_motion_lowres()

This is in line with the other functions
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2599a62f
......@@ -2387,7 +2387,6 @@ static inline void chroma_4mv_motion_lowres(MpegEncContext *s,
offset = src_y * s->uvlinesize + src_x;
ptr = ref_picture[1] + offset;
if (s->flags & CODEC_FLAG_EMU_EDGE) {
if ((unsigned) src_x > FFMAX(h_edge_pos - (!!sx) - block_s, 0) ||
(unsigned) src_y > FFMAX(v_edge_pos - (!!sy) - block_s, 0)) {
s->vdsp.emulated_edge_mc(s->edge_emu_buffer, ptr, s->uvlinesize,
......@@ -2395,7 +2394,6 @@ static inline void chroma_4mv_motion_lowres(MpegEncContext *s,
ptr = s->edge_emu_buffer;
emu = 1;
}
}
sx = (sx << 2) >> lowres;
sy = (sy << 2) >> lowres;
pix_op[op_index](dest_cb, ptr, s->uvlinesize, block_s, sx, sy);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment