update image width of packed format
authorZhao halley <halley.zhao@intel.com>
Thu, 31 May 2012 09:00:29 +0000 (17:00 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 25 Jun 2012 01:00:00 +0000 (09:00 +0800)
src/i965_post_processing.c

index 0eea6db..3e3a513 100755 (executable)
@@ -1257,7 +1257,10 @@ pp_set_media_rw_message_surface(VADriverContextP ctx, struct i965_post_processin
         pitch[0] = obj_image->image.pitches[0];
         offset[0] = obj_image->image.offsets[0];
 
-        if (interleaved_uv) {
+        if (packed_yuv ) {
+            width[0] = obj_image->image.width * 2;
+        }
+        else if (interleaved_uv) {
             width[1] = obj_image->image.width;
             height[1] = obj_image->image.height / 2;
             pitch[1] = obj_image->image.pitches[1];