fixed NDI file reading code for static data

Signed-off-by: Amit Shah <amit.shah@tum.de>