Skip to content

Commit

Permalink
Fix vif_neon segmentation fault
Browse files Browse the repository at this point in the history
  • Loading branch information
nilfm99 authored and nilfm committed Nov 1, 2023
1 parent 877215b commit 2603932
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libvmaf/src/feature/arm64/vif_neon.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ void vif_subsample_rd_8_neon(VifBuffer buf, unsigned int w, unsigned int h)
accum_ref += fcoeff * buf.tmp.ref_convol[jj_check];
accum_dis += fcoeff * buf.tmp.dis_convol[jj_check];
}
buf.mu1[i * i_dst_stride + j] = (uint16_t)(accum_ref >> 16);
buf.mu2[i * i_dst_stride + j] = (uint16_t)(accum_dis >> 16);
buf.mu1[i_dst_stride + j] = (uint16_t)(accum_ref >> 16);
buf.mu2[i_dst_stride + j] = (uint16_t)(accum_dis >> 16);
}
}

Expand Down Expand Up @@ -496,8 +496,8 @@ void vif_subsample_rd_16_neon(VifBuffer buf, unsigned int w, unsigned int h, int
accum_ref += fcoeff * buf.tmp.ref_convol[jj_check];
accum_dis += fcoeff * buf.tmp.dis_convol[jj_check];
}
buf.mu1[i * i_dst_stride + j] = (uint16_t)(accum_ref >> 16);
buf.mu2[i * i_dst_stride + j] = (uint16_t)(accum_dis >> 16);
buf.mu1[i_dst_stride + j] = (uint16_t)(accum_ref >> 16);
buf.mu2[i_dst_stride + j] = (uint16_t)(accum_dis >> 16);
}
}

Expand Down

0 comments on commit 2603932

Please sign in to comment.