diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2013-03-12 13:23:03 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2013-03-15 15:45:28 +0800 |
commit | 982dff70c7cd5e804ec0a7b3364704c3cbd00e0c (patch) | |
tree | e41d4b1142bcbc4a08d61d39c27a037547c8b7a9 /src/gen75_mfc.c | |
parent | 149f7699243e417034b2cbc72f132e0b098fcaf0 (diff) | |
download | libva-intel-driver-982dff70c7cd5e804ec0a7b3364704c3cbd00e0c.tar.gz libva-intel-driver-982dff70c7cd5e804ec0a7b3364704c3cbd00e0c.tar.bz2 libva-intel-driver-982dff70c7cd5e804ec0a7b3364704c3cbd00e0c.zip |
Encoder: directly use the surface object of the input surface
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'src/gen75_mfc.c')
-rw-r--r-- | src/gen75_mfc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gen75_mfc.c b/src/gen75_mfc.c index e055d32..5da00de 100644 --- a/src/gen75_mfc.c +++ b/src/gen75_mfc.c @@ -2451,8 +2451,7 @@ intel_mfc_mpeg2_prepare(VADriverContextP ctx, } /* input YUV surface */ - obj_surface = SURFACE(encoder_context->input_yuv_surface); - assert(obj_surface && obj_surface->bo); + obj_surface = encode_state->input_yuv_object; mfc_context->uncompressed_picture_source.bo = obj_surface->bo; dri_bo_reference(mfc_context->uncompressed_picture_source.bo); |