xv: Add align. pad in struct AdaptorInfo
authorDaniel Martin <consume.noise@gmail.com>
Mon, 9 Jun 2014 15:55:05 +0000 (17:55 +0200)
committerPeter Harris <pharris@opentext.com>
Tue, 10 Jun 2014 18:01:51 +0000 (14:01 -0400)
The (list) 'name' in the struct AdaptorInfo is not padded. Therefore
we've to add an alignment pad after it.

Reference: http://cgit.freedesktop.org/xorg/lib/libXv/tree/src/Xv.c#n250
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79808

Signed-off-by: Daniel Martin <consume.noise@gmail.com>
Signed-off-by: Peter Harris <pharris@opentext.com>
src/xv.xml

index 0b55d36..47a05d0 100644 (file)
@@ -101,6 +101,7 @@ authorization from the authors.
         <list type="char" name="name">
             <fieldref>name_size</fieldref>
         </list>
+        <pad align="4" />
         <list type="Format" name="formats">
             <fieldref>num_formats</fieldref>
         </list>