[FFmpeg-cvslog] r22495 - trunk/libavcodec/vp3.c
conrad
subversion
Sat Mar 13 06:56:05 CET 2010
Author: conrad
Date: Sat Mar 13 06:56:05 2010
New Revision: 22495
Log:
vp3: Init MVs to 0
Modified:
trunk/libavcodec/vp3.c
Modified: trunk/libavcodec/vp3.c
==============================================================================
--- trunk/libavcodec/vp3.c Sat Mar 13 06:56:01 2010 (r22494)
+++ trunk/libavcodec/vp3.c Sat Mar 13 06:56:05 2010 (r22495)
@@ -294,8 +294,8 @@ static void init_frame(Vp3DecodeContext
/* 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(Vp3DecodeContex
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);
More information about the ffmpeg-cvslog
mailing list