summaryrefslogtreecommitdiff
path: root/src/gen75_mfc.c
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2014-03-20 12:08:51 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-04-23 14:20:11 +0800
commit7b6523cb9d63e3cfcc238dfd0d5f4fc323ca59e2 (patch)
tree85177112a0aa80c6800bf84e46afc198034f10d4 /src/gen75_mfc.c
parenta618893863e780475f1b531d27d4dc0cd82c4a15 (diff)
downloadlibva-intel-driver-7b6523cb9d63e3cfcc238dfd0d5f4fc323ca59e2.tar.gz
libva-intel-driver-7b6523cb9d63e3cfcc238dfd0d5f4fc323ca59e2.tar.bz2
libva-intel-driver-7b6523cb9d63e3cfcc238dfd0d5f4fc323ca59e2.zip
Use the VA_FOURCC_ABCD constant to replace the VA_FOURCC(A,B,C,D)
This is helpful to avoid the typo error when using VA_FOURCC(A, B, C, D). Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> (cherry picked from commit acea969011bceee36a57fe2c0e4ee96c0c5e79c7)
Diffstat (limited to 'src/gen75_mfc.c')
-rw-r--r--src/gen75_mfc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gen75_mfc.c b/src/gen75_mfc.c
index 28edd40..2bfb6c2 100644
--- a/src/gen75_mfc.c
+++ b/src/gen75_mfc.c
@@ -2393,7 +2393,7 @@ intel_mfc_mpeg2_prepare(VADriverContextP ctx,
/* reconstructed surface */
obj_surface = encode_state->reconstructed_object;
- i965_check_alloc_surface_bo(ctx, obj_surface, 1, VA_FOURCC('N','V','1','2'), SUBSAMPLE_YUV420);
+ i965_check_alloc_surface_bo(ctx, obj_surface, 1, VA_FOURCC_NV12, SUBSAMPLE_YUV420);
mfc_context->pre_deblocking_output.bo = obj_surface->bo;
dri_bo_reference(mfc_context->pre_deblocking_output.bo);
mfc_context->surface_state.width = obj_surface->orig_width;