mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
avcodec/motion_est: Only clip MVs which are used
Fixes valgrind mpeg4 failures Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
edeefeaaf9
commit
ef8725122d
@ -620,7 +620,11 @@ static inline int h263_mv4_search(MpegEncContext *s, int mx, int my, int shift)
|
||||
P_MV1[0]= mx;
|
||||
P_MV1[1]= my;
|
||||
if(saftey_cliping)
|
||||
for(i=0; i<10; i++){
|
||||
for(i=1; i<10; i++){
|
||||
if (s->first_slice_line && block<2 && i>1 && i<9)
|
||||
continue;
|
||||
if (i>4 && i<9)
|
||||
continue;
|
||||
if(P[i][0] > (c->xmax<<shift)) P[i][0]= (c->xmax<<shift);
|
||||
if(P[i][1] > (c->ymax<<shift)) P[i][1]= (c->ymax<<shift);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user