param->analyse.b_ssim = 0;
param->i_cqm_preset = X264_CQM_FLAT;
- memset( param->cqm_4iy, 16, 16 );
- memset( param->cqm_4ic, 16, 16 );
- memset( param->cqm_4py, 16, 16 );
- memset( param->cqm_4pc, 16, 16 );
- memset( param->cqm_8iy, 16, 64 );
- memset( param->cqm_8py, 16, 64 );
+ memset( param->cqm_4iy, 16, sizeof( param->cqm_4iy ) );
+ memset( param->cqm_4ic, 16, sizeof( param->cqm_4ic ) );
+ memset( param->cqm_4py, 16, sizeof( param->cqm_4py ) );
+ memset( param->cqm_4pc, 16, sizeof( param->cqm_4pc ) );
+ memset( param->cqm_8iy, 16, sizeof( param->cqm_8iy ) );
+ memset( param->cqm_8py, 16, sizeof( param->cqm_8py ) );
param->b_repeat_headers = 1;
param->b_annexb = 1;
}
}
if( h->sh.i_type == SLICE_TYPE_P )
- memset( h->mb.cache.skip, 0, X264_SCAN8_SIZE * sizeof( int8_t ) );
+ memset( h->mb.cache.skip, 0, sizeof( h->mb.cache.skip ) );
/* init with not available (for top right idx=7,15) */
- memset( h->mb.cache.ref[0], -2, X264_SCAN8_SIZE * sizeof( int8_t ) );
- memset( h->mb.cache.ref[1], -2, X264_SCAN8_SIZE * sizeof( int8_t ) );
+ memset( h->mb.cache.ref, -2, sizeof( h->mb.cache.ref ) );
setup_inverse_delta_pocs( h );
h->mb.i_cbp_luma = 0xf;
h->mb.cbp[i_mb_xy] = 0x72f; /* all set */
h->mb.b_transform_8x8 = 0;
- memset( non_zero_count, 16, 24 );
+ memset( non_zero_count, 16, sizeof( *h->mb.non_zero_count ) );
}
else
{
{
h->mb.i_cbp_luma = 0x00;
h->mb.i_cbp_chroma = 0x00;
- memset( h->mb.cache.non_zero_count, 0, X264_SCAN8_SIZE );
+ memset( h->mb.cache.non_zero_count, 0, sizeof( h->mb.cache.non_zero_count ) );
/* store cbp */
h->mb.cbp[h->mb.i_mb_xy] = 0;
}