avformat/avidec: Fix infinite loop in avi_read_nikon()