lc->scaling_factor_num, lc->scaling_factor_den, &width,
&height);
- // For low resolutions: set phase of the filter = 8 (for symmetric averaging
- // filter), use bilinear for now.
- if (width <= 320 && height <= 240) {
+ // For resolutions <= QVGA: set phase of the filter = 8 (for symmetric
+ // averaging filter), use bilinear for now.
+ if (width * height <= 320 * 240) {
cpi->svc.downsample_filter_type[cpi->svc.spatial_layer_id] = BILINEAR;
cpi->svc.downsample_filter_phase[cpi->svc.spatial_layer_id] = 8;
}