On Tue, 14 Mar 2017 17:59:35 -0400 Vittorio Giovara <vittorio.giov...@gmail.com> wrote:
> These types better reflect the ones described in the specification and > avoid any platform-specific implementation issues. > > Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> > --- > libavformat/dump.c | 2 +- > libavutil/spherical.h | 10 +++++----- > 2 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/libavformat/dump.c b/libavformat/dump.c > index 7514aee7ac..c56895628d 100644 > --- a/libavformat/dump.c > +++ b/libavformat/dump.c > @@ -339,7 +339,7 @@ static void dump_spherical(void *ctx, AVCodecParameters > *par, AVPacketSideData * > &l, &t, &r, &b); > av_log(ctx, AV_LOG_INFO, "[%zu, %zu, %zu, %zu] ", l, t, r, b); > } else if (spherical->projection == AV_SPHERICAL_CUBEMAP) { > - av_log(ctx, AV_LOG_INFO, "[pad %zu] ", spherical->padding); > + av_log(ctx, AV_LOG_INFO, "[pad %"PRIu32"] ", spherical->padding); > } > } > > diff --git a/libavutil/spherical.h b/libavutil/spherical.h > index e7fc1d69fb..fd662cf676 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; > > /** +1 We should change the AVFrame crop fields too. _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel