summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/wmv2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/wmv2.c b/libavcodec/wmv2.c
index ae8176798d..6def6f2a81 100644
--- a/libavcodec/wmv2.c
+++ b/libavcodec/wmv2.c
@@ -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;