avcodec/cuvid: Always check for internal errors during parsing