Implement modulo 16 for netcams to avoid seg fault in stream