# HG changeset patch # User conrad # Date 1268459765 0 # Node ID 8ef47a02b5166babaec1f225a06f30f82c93f3c8 # Parent 75b80079449fbae012b555d69369702e916557a9 vp3: Init MVs to 0 diff -r 75b80079449f -r 8ef47a02b516 vp3.c --- a/vp3.c Sat Mar 13 05:56:01 2010 +0000 +++ b/vp3.c Sat Mar 13 05:56:05 2010 +0000 @@ -294,8 +294,8 @@ /* zero out all of the fragment information */ for (i = 0; i < s->fragment_count; i++) { - s->all_fragments[i].motion_x = 127; - s->all_fragments[i].motion_y = 127; + s->all_fragments[i].motion_x = 0; + s->all_fragments[i].motion_y = 0; s->all_fragments[i].dc = 0; s->all_fragments[i].qpi = 0; } @@ -1402,8 +1402,6 @@ src_x= (motion_x>>1) + 8*x; src_y= (motion_y>>1) + 8*y; - if ((motion_x == 127) || (motion_y == 127)) - av_log(s->avctx, AV_LOG_ERROR, " help! got invalid motion vector! (%X, %X)\n", motion_x, motion_y); motion_halfpel_index = motion_x & 0x01; motion_source += (motion_x >> 1);