summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gen8_vme.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gen8_vme.c b/src/gen8_vme.c
index 12a3137..cb6f143 100644
--- a/src/gen8_vme.c
+++ b/src/gen8_vme.c
@@ -282,10 +282,9 @@ gen8_vme_surface_setup(VADriverContextP ctx,
if (slice_obj_surface && slice_obj_surface->bo) {
obj_surface = slice_obj_surface;
} else {
- obj_surface = encode_state->reference_objects[0];
+ obj_surface = encode_state->reference_objects[1];
}
- obj_surface = encode_state->reference_objects[1];
if (obj_surface && obj_surface->bo)
gen8_vme_source_surface_state(ctx, 2, obj_surface, encoder_context);
}