[Libva] [PATCH 3/4] mpeg2: fix reference surfaces construction (IVB).
Gwenole Beauchesne
gb.devel at gmail.com
Fri Mar 16 00:19:48 PDT 2012
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
---
src/gen7_mfd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gen7_mfd.c b/src/gen7_mfd.c
index 706025b..04521fb 100644
--- a/src/gen7_mfd.c
+++ b/src/gen7_mfd.c
@@ -1051,7 +1051,7 @@ gen7_mfd_mpeg2_decode_init(VADriverContextP ctx,
if (obj_surface && obj_surface->bo)
gen7_mfd_context->reference_surface[1].surface_id = pic_param->backward_reference_picture;
else
- gen7_mfd_context->reference_surface[1].surface_id = pic_param->forward_reference_picture;
+ gen7_mfd_context->reference_surface[1].surface_id = gen7_mfd_context->reference_surface[0].surface_id;
/* must do so !!! */
for (i = 2; i < ARRAY_ELEMS(gen7_mfd_context->reference_surface); i++)
--
1.7.5.4
More information about the Libva
mailing list