This should probably be a size_t, perhaps this fixes the win64 mediafilter bug.