From f29cbb7e5ea5b92d2bc8de2c7237a7c5704b0cc1 Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Sun, 29 Sep 2013 13:16:29 +0800 Subject: Fix the reference for list1 Signed-off-by: Xiang, Haihao (cherry picked from commit a45edbef143808ee925ef7708c516e6df21fa36b) --- src/gen6_vme.c | 3 +-- src/gen75_vme.c | 3 +-- src/gen7_vme.c | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/gen6_vme.c b/src/gen6_vme.c index 1345466..e1403d2 100644 --- a/src/gen6_vme.c +++ b/src/gen6_vme.c @@ -245,10 +245,9 @@ gen6_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) gen6_vme_source_surface_state(ctx, 2, obj_surface, encoder_context); } diff --git a/src/gen75_vme.c b/src/gen75_vme.c index e9ddf0b..b1596fa 100644 --- a/src/gen75_vme.c +++ b/src/gen75_vme.c @@ -306,10 +306,9 @@ gen75_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) gen75_vme_source_surface_state(ctx, 2, obj_surface, encoder_context); } diff --git a/src/gen7_vme.c b/src/gen7_vme.c index 2f167ab..8594b0f 100644 --- a/src/gen7_vme.c +++ b/src/gen7_vme.c @@ -291,10 +291,9 @@ gen7_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) gen7_vme_source_surface_state(ctx, 2, obj_surface, encoder_context); } -- cgit v1.2.3