]> granicus.if.org Git - libx264/commitdiff
Fix crash in --me esa/tesa introduced in r1058
authorLoren Merritt <pengvado@akuvian.org>
Thu, 25 Dec 2008 03:58:17 +0000 (22:58 -0500)
committerFiona Glaser <fiona@x264.com>
Thu, 25 Dec 2008 03:58:17 +0000 (22:58 -0500)
Also suppress the last mingw warning message

common/common.c
common/mc.c

index 5e08c68882509ad686dcba52795c85480e38ca85..6669cae86334e31dae6d1b6e90fc9dbdcf6303b0 100644 (file)
@@ -247,7 +247,7 @@ int x264_param_parse( x264_param_t *p, const char *name, const char *value )
         if( b_error )
         {
             char *buf = strdup(value);
-            char *tok, *saveptr, *init;
+            char *tok, UNUSED *saveptr, *init;
             b_error = 0;
             p->cpu = 0;
             for( init=buf; (tok=strtok_r(init, ",", &saveptr)); init=NULL )
index 7422ba4e8930af8e10327307c3ef09f719d0622b..331e6265d1caab27bb94ba90d182f50a8cb54f14 100644 (file)
@@ -439,7 +439,7 @@ void x264_frame_filter( x264_t *h, x264_frame_t *frame, int mb_y, int b_end )
             start = -PADV;
         }
         if( b_end )
-            height += PADV-8;
+            height += PADV-9;
         for( y = start; y < height; y++ )
         {
             uint8_t  *pix  = frame->plane[0] + y * stride - PADH;