summaryrefslogtreecommitdiff
path: root/src/gen6_vme.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gen6_vme.c')
-rw-r--r--src/gen6_vme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gen6_vme.c b/src/gen6_vme.c
index 1d47517..1345466 100644
--- a/src/gen6_vme.c
+++ b/src/gen6_vme.c
@@ -223,7 +223,7 @@ gen6_vme_surface_setup(VADriverContextP ctx,
if (slice_type == SLICE_TYPE_P || slice_type == SLICE_TYPE_B) {
slice_obj_surface = NULL;
ref_surface_id = slice_param->RefPicList0[0].picture_id;
- if (ref_surface_id != 0 && ref_surface_id != VA_INVALID_SURFACE) {
+ if (ref_surface_id != VA_INVALID_SURFACE) {
slice_obj_surface = SURFACE(ref_surface_id);
}
if (slice_obj_surface && slice_obj_surface->bo) {
@@ -239,7 +239,7 @@ gen6_vme_surface_setup(VADriverContextP ctx,
/* reference 1 */
slice_obj_surface = NULL;
ref_surface_id = slice_param->RefPicList1[0].picture_id;
- if (ref_surface_id != 0 && ref_surface_id != VA_INVALID_SURFACE) {
+ if (ref_surface_id != VA_INVALID_SURFACE) {
slice_obj_surface = SURFACE(ref_surface_id);
}
if (slice_obj_surface && slice_obj_surface->bo) {