summaryrefslogtreecommitdiff
path: root/libavcodec/vp3.c
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2010-03-13 05:56:05 +0000
committerDavid Conrad <lessen42@gmail.com>2010-03-13 05:56:05 +0000
commitcd9c03f57f1197adb8bcd861a11a5a879eebe4e6 (patch)
tree2597716122c30be648c12d55c943149eae0f44bb /libavcodec/vp3.c
parenta16389c18f195cc73db1731057e1e3aba2d51eb1 (diff)
vp3: Init MVs to 0
Originally committed as revision 22495 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r--libavcodec/vp3.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index c5256112a7..fd2b6abc6e 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -294,8 +294,8 @@ static void init_frame(Vp3DecodeContext *s, GetBitContext *gb)
/* 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 @@ static void render_slice(Vp3DecodeContext *s, int slice)
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);