projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78954a0
)
maybe fixing a segfault
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 3 Jan 2007 11:32:02 +0000
(11:32 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 3 Jan 2007 11:32:02 +0000
(11:32 +0000)
Originally committed as revision 7407 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/wmv2.c
patch
|
blob
|
history
diff --git
a/libavcodec/wmv2.c
b/libavcodec/wmv2.c
index
5abc517
..
f3d4f0f
100644
(file)
--- a/
libavcodec/wmv2.c
+++ b/
libavcodec/wmv2.c
@@
-643,6
+643,12
@@
void ff_mspel_motion(MpegEncContext *s,
v_edge_pos = s->v_edge_pos;
src_x = clip(src_x, -16, s->width);
src_y = clip(src_y, -16, s->height);
+
+ if(src_x<=-16 || src_x >= s->width)
+ dxy &= ~3;
+ if(src_y<=-16 || src_y >= s->height)
+ dxy &= ~4;
+
linesize = s->linesize;
uvlinesize = s->uvlinesize;
ptr = ref_picture[0] + (src_y * linesize) + src_x;