video-format: Add macro checking for validity of GstVideoFormatInfo