summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2012-01-19 09:01:59 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2012-02-07 09:21:35 +0800
commit6673b012811c4ee12c970b263d805b3c75e24c88 (patch)
tree738dd875a4c23cb2511b048f5514ab0da9f302af
parent99259738f87321d194ad1fbfe0edc5df7d6389b9 (diff)
Fix frame height/width for YUV400/YUV444/YUV422V_2Y JPEG image
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r--src/gen7_mfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gen7_mfd.c b/src/gen7_mfd.c
index 509eacc..e4eaa7e 100644
--- a/src/gen7_mfd.c
+++ b/src/gen7_mfd.c
@@ -2059,8 +2059,8 @@ gen7_mfd_jpeg_pic_state(VADriverContextP ctx,
assert(0);
}
- if (chroma_type == GEN7_YUV400 &&
- chroma_type == GEN7_YUV444 &&
+ if (chroma_type == GEN7_YUV400 ||
+ chroma_type == GEN7_YUV444 ||
chroma_type == GEN7_YUV422V_2Y) {
frame_width_in_blks = ((pic_param->image_width + 7) / 8);
frame_height_in_blks = ((pic_param->image_height + 7) / 8);