vidc: Validate input data before processing