From 609deaf54ad74816ba061c7022172986694049c9 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Wed, 3 May 2006 17:59:23 +0000 Subject: [PATCH] typo in expand_border_mod16 git-svn-id: svn://svn.videolan.org/x264/trunk@517 df754926-b1dd-0310-bc7b-ec298dee348c --- common/frame.c | 2 +- encoder/ratecontrol.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/frame.c b/common/frame.c index 60762201..bd0cb7af 100644 --- a/common/frame.c +++ b/common/frame.c @@ -254,7 +254,7 @@ void x264_frame_expand_border_mod16( x264_t *h, x264_frame_t *frame ) } if( i_pady ) { - for( y = i_height; y < i_height + i_pady; y++ ); + for( y = i_height; y < i_height + i_pady; y++ ) memcpy( &frame->plane[i][y*frame->i_stride[i]], &frame->plane[i][(i_height-1)*frame->i_stride[i]], i_width + i_padx ); diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index 3dcec173..51541281 100644 --- a/encoder/ratecontrol.c +++ b/encoder/ratecontrol.c @@ -1370,14 +1370,14 @@ static int init_pass2( x264_t *h ) if(weight < .0001) break; weight_sum += weight; - cplx_sum += weight * (qscale2bits(rcj, 1) - rcc->entry[j].misc_bits); + cplx_sum += weight * (qscale2bits(rcj, 1) - rcj->misc_bits); } /* weighted average of cplx of past frames */ weight = 1.0; for(j=0; j<=cplxblur*2 && j<=i; j++){ ratecontrol_entry_t *rcj = &rcc->entry[i-j]; weight_sum += weight; - cplx_sum += weight * (qscale2bits(rcj, 1) - rcc->entry[j].misc_bits); + cplx_sum += weight * (qscale2bits(rcj, 1) - rcj->misc_bits); weight *= 1 - pow( (float)rcj->i_count / rcc->nmb, 2 ); if(weight < .0001) break; -- 2.47.3