From 614e17928e8f7b1bdc632fd934499cbfea165d8a Mon Sep 17 00:00:00 2001 From: Robin KAY Date: Sun, 22 Dec 2002 00:35:04 +0000 Subject: Make xine-lib compile with the SunPro compiler CVS patchset: 3623 CVS date: 2002/12/22 00:35:04 --- src/libffmpeg/libavcodec/motion_est.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/libffmpeg/libavcodec/motion_est.c') diff --git a/src/libffmpeg/libavcodec/motion_est.c b/src/libffmpeg/libavcodec/motion_est.c index fa6c3ee6b..547f4cdc5 100644 --- a/src/libffmpeg/libavcodec/motion_est.c +++ b/src/libffmpeg/libavcodec/motion_est.c @@ -417,7 +417,7 @@ static inline int snake_search(MpegEncContext * s, int *best, int dmin, static int x_dir[8]= {1,1,0,-1,-1,-1, 0, 1}; static int y_dir[8]= {0,1,1, 1, 0,-1,-1,-1}; int fails=0; - int last_d[2]={dmin, dmin}; + int last_d[2]; /*static int good=0; static int bad=0; @@ -429,6 +429,9 @@ if(256*256*256*64%point==0) printf("%d %d %d\n", good, bad, point); }*/ + last_d[0] = dmin; + last_d[1] = dmin; + for(;;){ int x= best[0]; int y= best[1]; -- cgit v1.2.3