You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
maybe fixing a segfault
Originally committed as revision 7407 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user