[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec wmv2.c,1.34,1.35
Michael Niedermayer CVS
michael
Fri Aug 5 00:46:29 CEST 2005
Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv7558
Modified Files:
wmv2.c
Log Message:
segfault fix
Index: wmv2.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/wmv2.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- wmv2.c 27 Jul 2005 07:29:20 -0000 1.34
+++ wmv2.c 4 Aug 2005 22:46:27 -0000 1.35
@@ -513,9 +513,12 @@
B = s->current_picture.motion_val[0][xy - wrap];
C = s->current_picture.motion_val[0][xy + 2 - wrap];
- diff= FFMAX(ABS(A[0] - B[0]), ABS(A[1] - B[1]));
+ if(s->mb_x && !s->first_slice_line && !s->mspel && w->top_left_mv_flag)
+ diff= FFMAX(ABS(A[0] - B[0]), ABS(A[1] - B[1]));
+ else
+ diff=0;
- if(s->mb_x && !s->first_slice_line && !s->mspel && w->top_left_mv_flag && diff >= 8)
+ if(diff >= 8)
type= get_bits1(&s->gb);
else
type= 2;
More information about the ffmpeg-cvslog
mailing list