Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vif_neon segmentation fault #1245

Merged
merged 1 commit into from
Nov 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading