1
mirror of https://code.videolan.org/videolan/dav1d synced 2024-09-27 11:50:24 +02:00

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 }.
This commit is contained in:
James Almer 2018-10-28 14:17:33 -03:00
parent 0f4253f24d
commit 5ff8504394
No known key found for this signature in database
GPG Key ID: 146301AD737659E0

View File

@ -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;