avidec/guess_ni_flag: fix harmless integer overflow