mirror of
https://code.videolan.org/videolan/dav1d
synced 2024-11-14 22:58:33 +01: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:
parent
0f4253f24d
commit
5ff8504394
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user