diff options
author | Daniel Charles <daniel.charles@intel.com> | 2016-08-18 12:43:46 -0700 |
---|---|---|
committer | Sean V Kelley <seanvk@posteo.de> | 2016-08-18 12:56:05 -0700 |
commit | c237791816a1e1067fc5504401a95ae910daa950 (patch) | |
tree | a55588e82ea9cdb426f56c9303a032d4c65daeea /src/i965_encoder.c | |
parent | 98555d27c8291fe2511355d53924d17a5263dc22 (diff) | |
download | libva-intel-driver-c237791816a1e1067fc5504401a95ae910daa950.tar.gz |
i965_encoder: remove double check for VAStatus result
after creating underlying surface there's a double check on the
VAStatus result. Replace it with ASSERT_RET.
Signed-off-by: Daniel Charles <daniel.charles@intel.com>
Reviewed-by: Sean V Kelley <seanvk@posteo.de>
Diffstat (limited to 'src/i965_encoder.c')
-rw-r--r-- | src/i965_encoder.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/i965_encoder.c b/src/i965_encoder.c index beea811b..47368fbc 100644 --- a/src/i965_encoder.c +++ b/src/i965_encoder.c @@ -153,10 +153,7 @@ intel_encoder_check_yuv_surface(VADriverContextP ctx, VA_RT_FORMAT_YUV420, 1, &encoder_context->input_yuv_surface); - assert(status == VA_STATUS_SUCCESS); - - if (status != VA_STATUS_SUCCESS) - return status; + ASSERT_RET(status == VA_STATUS_SUCCESS, status); obj_surface = SURFACE(encoder_context->input_yuv_surface); encode_state->input_yuv_object = obj_surface; |