shithub: dav1d

Download patch

ref: 5ff8504394d815fd27f86b6c4030d58d9836c258
parent: 0f4253f24d80346c4afea3e09e0db906c04aad3d
author: James Almer <jamrial@gmail.com>
date: Sun Oct 28 10:17:33 EDT 2018

picture: make poc the first field in Dav1dPicture

This prevents warnings on some old compilers that don't like structs that
start with an array being initialized with { 0 }.

--- a/include/dav1d/picture.h
+++ b/include/dav1d/picture.h
@@ -125,6 +125,8 @@
 } Dav1dPictureParameters;
 
 typedef struct Dav1dPicture {
+    int poc; ///< frame number
+
     /**
      * Pointers to planar image data (Y is [0], U is [1], V is [2]). The data
      * should be bytes (for 8 bpc) or words (for 10 bpc). In case of words
@@ -141,8 +143,6 @@
     ptrdiff_t stride[2];
 
     Dav1dPictureParameters p;
-
-    int poc; ///< frame number
 
     void *allocator_data; ///< pointer managed by the allocator
 } Dav1dPicture;