bugfix
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 29 Jan 2003 15:50:07 +0000 (15:50 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 29 Jan 2003 15:50:07 +0000 (15:50 +0000)
Originally committed as revision 1523 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/wmv2.c

index ae81767..6def6f2 100644 (file)
@@ -504,8 +504,7 @@ static int16_t *wmv2_pred_motion(Wmv2Context *w, int *px, int *py){
     
     diff= FFMAX(ABS(A[0] - B[0]), ABS(A[1] - B[1]));
     
-    if(s->mb_x && s->mb_y && !s->mspel && w->top_left_mv_flag && diff >= 8)
-        //FIXME top/left bit too if y=!0 && first_slice_line?
+    if(s->mb_x && !s->first_slice_line && !s->mspel && w->top_left_mv_flag && diff >= 8)
         type= get_bits1(&s->gb);
     else
         type= 2;