From 5ff8504394d815fd27f86b6c4030d58d9836c258 Mon Sep 17 00:00:00 2001 From: James Almer Date: Sun, 28 Oct 2018 14:17:33 -0300 Subject: [PATCH] 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 }. --- include/dav1d/picture.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dav1d/picture.h b/include/dav1d/picture.h index b0e1e118..5d2977c1 100644 --- a/include/dav1d/picture.h +++ b/include/dav1d/picture.h @@ -125,6 +125,8 @@ typedef struct Dav1dPictureParameters { } 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 @@ -142,8 +144,6 @@ typedef struct Dav1dPicture { Dav1dPictureParameters p; - int poc; ///< frame number - void *allocator_data; ///< pointer managed by the allocator } Dav1dPicture;