[FFmpeg-cvslog] lavu/spherical: Make AVSphericalMapping pointer parameter const.

Carl Eugen Hoyos git at videolan.org
Thu Mar 16 23:18:34 EET 2017


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Mar 16 21:19:48 2017 +0100| [1cd58e915436ea84eb861327f3897ef54058ee42] | committer: Carl Eugen Hoyos

lavu/spherical: Make AVSphericalMapping pointer parameter const.

Reflects the actual code and silences a gcc warning:
ffprobe.c:1797:42: warning: passing argument 1 of 'av_spherical_tile_bounds' discards 'const' qualifier from pointer target type

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1cd58e915436ea84eb861327f3897ef54058ee42
---

 libavutil/spherical.c | 2 +-
 libavutil/spherical.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavutil/spherical.c b/libavutil/spherical.c
index 0ca2dd3..f0b6221 100644
--- a/libavutil/spherical.c
+++ b/libavutil/spherical.c
@@ -33,7 +33,7 @@ AVSphericalMapping *av_spherical_alloc(size_t *size)
     return spherical;
 }
 
-void av_spherical_tile_bounds(AVSphericalMapping *map,
+void av_spherical_tile_bounds(const AVSphericalMapping *map,
                               size_t width, size_t height,
                               size_t *left, size_t *top,
                               size_t *right, size_t *bottom)
diff --git a/libavutil/spherical.h b/libavutil/spherical.h
index db9bdc0..f4e0d60 100644
--- a/libavutil/spherical.h
+++ b/libavutil/spherical.h
@@ -202,7 +202,7 @@ AVSphericalMapping *av_spherical_alloc(size_t *size);
  * @param right  Pixels from the right edge.
  * @param bottom Pixels from the bottom edge.
  */
-void av_spherical_tile_bounds(AVSphericalMapping *map,
+void av_spherical_tile_bounds(const AVSphericalMapping *map,
                               size_t width, size_t height,
                               size_t *left, size_t *top,
                               size_t *right, size_t *bottom);



More information about the ffmpeg-cvslog mailing list