Browse Source

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
tags/v0.6
Kostya Shishkov 16 years ago
parent
commit
74a30595b2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/vc1dec.c

+ 2
- 2
libavcodec/vc1dec.c View File

@@ -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);


Loading…
Cancel
Save