Skip to content

Commit

Permalink
Fix crash with 8 < bits < 16
Browse files Browse the repository at this point in the history
Broken in 9bce95e.
  • Loading branch information
cantabile committed Jan 24, 2016
1 parent b6fe099 commit 13f3ebd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.ac
@@ -1,4 +1,4 @@
AC_INIT([nnedi3], [7], [https://github.com/dubhater/vapoursynth-nnedi3/issues], [nnedi3], [https://github.com/dubhater/vapoursynth-nnedi3/])
AC_INIT([nnedi3], [8], [https://github.com/dubhater/vapoursynth-nnedi3/issues], [nnedi3], [https://github.com/dubhater/vapoursynth-nnedi3/])

: ${CXXFLAGS=""}

Expand Down
2 changes: 1 addition & 1 deletion src/nnedi3.cpp
Expand Up @@ -809,7 +809,7 @@ static void selectFunctions(nnedi3Data *d) {
d->dotProd = dotProd_neon;
}
#endif
} else if (d->vi.format->sampleType == stInteger && d->vi.format->bitsPerSample == 16) {
} else if (d->vi.format->sampleType == stInteger && d->vi.format->bitsPerSample <= 16) {
d->copyPad = copyPad<uint16_t>;
d->evalFunc_0 = evalFunc_0<uint16_t>;
d->evalFunc_1 = evalFunc_1<uint16_t>;
Expand Down

0 comments on commit 13f3ebd

Please sign in to comment.