Fix the reference for list1
authorXiang, Haihao <haihao.xiang@intel.com>
Sun, 29 Sep 2013 05:16:29 +0000 (13:16 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 13 Nov 2013 07:28:22 +0000 (15:28 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit a45edbef143808ee925ef7708c516e6df21fa36b)

src/gen6_vme.c
src/gen75_vme.c
src/gen7_vme.c

index 1345466..e1403d2 100644 (file)
@@ -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);
        }
index e9ddf0b..b1596fa 100644 (file)
@@ -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);
        }
index 2f167ab..8594b0f 100644 (file)
@@ -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);
        }