summaryrefslogtreecommitdiff
path: root/libavcodec/vc1dec.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2009-06-23 07:41:38 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-06-23 07:41:38 +0000
commit74a30595b276403f2af5ca1a0235c41509b84784 (patch)
tree4a43cbfd349ec6a30998f6f08f7f866d00063fcd /libavcodec/vc1dec.c
parent1a40491ef212869077278b46f74ee92a66809d20 (diff)
Edge emulation should be used in B-frame MC in mspel mode with
mv_x < 1 or mv_y < 1. Originally committed as revision 19255 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r--libavcodec/vc1dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 7aa104a213..96055e664c 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -860,8 +860,8 @@ static void vc1_interp_mc(VC1Context *v)
}
if(v->rangeredfrm
- || (unsigned)src_x > s->h_edge_pos - (mx&3) - 16 - s->mspel*3
- || (unsigned)src_y > s->v_edge_pos - (my&3) - 16 - s->mspel*3){
+ || (unsigned)(src_x - s->mspel) > s->h_edge_pos - (mx&3) - 16 - s->mspel*3
+ || (unsigned)(src_y - s->mspel) > s->v_edge_pos - (my&3) - 16 - s->mspel*3){
uint8_t *uvbuf= s->edge_emu_buffer + 19 * s->linesize;
srcY -= s->mspel * (1 + s->linesize);