---
 src/i965_post_processing.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c
index a720a99..bfb762e 100755
--- a/src/i965_post_processing.c
+++ b/src/i965_post_processing.c
@@ -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];
-- 
1.7.5.4

_______________________________________________
Libva mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libva

Reply via email to