lavu/spherical: Make AVSphericalMapping pointer parameter const.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 16 Mar 2017 20:19:48 +0000 (21:19 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 16 Mar 2017 21:18:12 +0000 (22:18 +0100)
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

libavutil/spherical.c
libavutil/spherical.h

index 0ca2dd3..f0b6221 100644 (file)
@@ -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)
index db9bdc0..f4e0d60 100644 (file)
@@ -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);