diff options
author | Henrik Gramner <gramner@twoorioles.com> | 2020-02-06 05:43:40 +0300 |
---|---|---|
committer | Henrik Gramner <gramner@twoorioles.com> | 2020-02-06 22:57:08 +0300 |
commit | 58a4ba072214e2b4a39d1d54821a426c2269e233 (patch) | |
tree | 04d13d800c7986a01c8e07c00bd82964f73494ab /include | |
parent | c89eb564366dfe11da016a738e4fc609f17710c1 (diff) |
Reorder the Dav1dFrameHeader struct to fix alignment issues
The ar_coeff_shift element needs to have a 16-byte alignment on x86.
Diffstat (limited to 'include')
-rw-r--r-- | include/dav1d/headers.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/dav1d/headers.h b/include/dav1d/headers.h index ae323cb..b0c5be7 100644 --- a/include/dav1d/headers.h +++ b/include/dav1d/headers.h @@ -329,13 +329,13 @@ typedef struct Dav1dFilmGrainData { } Dav1dFilmGrainData; typedef struct Dav1dFrameHeader { - enum Dav1dFrameType frame_type; ///< type of the picture - int width[2 /* { coded_width, superresolution_upscaled_width } */], height; - int frame_offset; ///< frame number struct { - int present, update; Dav1dFilmGrainData data; + int present, update; } film_grain; ///< film grain parameters + enum Dav1dFrameType frame_type; ///< type of the picture + int width[2 /* { coded_width, superresolution_upscaled_width } */], height; + int frame_offset; ///< frame number int temporal_id, spatial_id; ///< spatial and temporal id of the frame for SVC int show_existing_frame; |