From: Loren Merritt Date: Thu, 25 Dec 2008 03:58:17 +0000 (-0500) Subject: Fix crash in --me esa/tesa introduced in r1058 X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=839cd8cf33492213f7878bf14c26b387b6599abd;p=x264.git Fix crash in --me esa/tesa introduced in r1058 Also suppress the last mingw warning message --- diff --git a/common/common.c b/common/common.c index 5e08c688..6669cae8 100644 --- a/common/common.c +++ b/common/common.c @@ -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 ) diff --git a/common/mc.c b/common/mc.c index 7422ba4e..331e6265 100644 --- a/common/mc.c +++ b/common/mc.c @@ -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;