summaryrefslogtreecommitdiff
path: root/libavutil/spherical.h
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2017-03-16 17:20:47 -0400
committerVittorio Giovara <vittorio.giovara@gmail.com>2017-03-17 13:12:25 -0400
commitf20bcec4c2b1c2a57ed89e5be1ac2e0db1bc62b4 (patch)
treef5fb98454708d907841bdb59383a259d139e75dd /libavutil/spherical.h
parent21a8e751ad6abb2d423afa3041da92f8f7741997 (diff)
downloadffmpeg-f20bcec4c2b1c2a57ed89e5be1ac2e0db1bc62b4.tar.gz
spherical: Change types of bounding and pad to uint32_t
These values are defined to be 32bit in the specification, so it makes more sense to store them as fixed width. Based on a patch by Micahel Niedermayer <michael@niedermayer.cc>. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavutil/spherical.h')
-rw-r--r--libavutil/spherical.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavutil/spherical.h b/libavutil/spherical.h
index f4e0d60966..a7952875af 100644
--- a/libavutil/spherical.h
+++ b/libavutil/spherical.h
@@ -164,10 +164,10 @@ typedef struct AVSphericalMapping {
* projection type (@ref AV_SPHERICAL_EQUIRECTANGULAR_TILE),
* and should be ignored in all other cases.
*/
- size_t bound_left; ///< Distance from the left edge
- size_t bound_top; ///< Distance from the top edge
- size_t bound_right; ///< Distance from the right edge
- size_t bound_bottom; ///< Distance from the bottom edge
+ uint32_t bound_left; ///< Distance from the left edge
+ uint32_t bound_top; ///< Distance from the top edge
+ uint32_t bound_right; ///< Distance from the right edge
+ uint32_t bound_bottom; ///< Distance from the bottom edge
/**
* @}
*/
@@ -179,7 +179,7 @@ typedef struct AVSphericalMapping {
* (@ref AV_SPHERICAL_CUBEMAP), and should be ignored in all other
* cases.
*/
- size_t padding;
+ uint32_t padding;
} AVSphericalMapping;
/**