提交 bc9a4597 编写于 作者: M Michael Niedermayer

maybe fixing a segfault

Originally committed as revision 7407 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 78954a05
...@@ -643,6 +643,12 @@ void ff_mspel_motion(MpegEncContext *s, ...@@ -643,6 +643,12 @@ void ff_mspel_motion(MpegEncContext *s,
v_edge_pos = s->v_edge_pos; v_edge_pos = s->v_edge_pos;
src_x = clip(src_x, -16, s->width); src_x = clip(src_x, -16, s->width);
src_y = clip(src_y, -16, s->height); 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; linesize = s->linesize;
uvlinesize = s->uvlinesize; uvlinesize = s->uvlinesize;
ptr = ref_picture[0] + (src_y * linesize) + src_x; ptr = ref_picture[0] + (src_y * linesize) + src_x;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册