[SCM] libav/experimental: Edge emulation should be used in B-frame MC in mspel mode with mv_x < 1 or mv_y < 1.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:48:08 UTC 2013
The following commit has been merged in the experimental branch:
commit 74a30595b276403f2af5ca1a0235c41509b84784
Author: Kostya Shishkov <kostya.shishkov at gmail.com>
Date: Tue Jun 23 07:41:38 2009 +0000
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
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 7aa104a..96055e6 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);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list