Skip to content

Commit 13f3ebd

Browse files
author
cantabile
committed
Fix crash with 8 < bits < 16
Broken in 9bce95e.
1 parent b6fe099 commit 13f3ebd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT([nnedi3], [7], [https://github.com/dubhater/vapoursynth-nnedi3/issues], [nnedi3], [https://github.com/dubhater/vapoursynth-nnedi3/])
1+
AC_INIT([nnedi3], [8], [https://github.com/dubhater/vapoursynth-nnedi3/issues], [nnedi3], [https://github.com/dubhater/vapoursynth-nnedi3/])
22

33
: ${CXXFLAGS=""}
44

src/nnedi3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ static void selectFunctions(nnedi3Data *d) {
809809
d->dotProd = dotProd_neon;
810810
}
811811
#endif
812-
} else if (d->vi.format->sampleType == stInteger && d->vi.format->bitsPerSample == 16) {
812+
} else if (d->vi.format->sampleType == stInteger && d->vi.format->bitsPerSample <= 16) {
813813
d->copyPad = copyPad<uint16_t>;
814814
d->evalFunc_0 = evalFunc_0<uint16_t>;
815815
d->evalFunc_1 = evalFunc_1<uint16_t>;

0 commit comments

Comments
 (0)