]> git.sesse.net Git - ffmpeg/commitdiff
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 0ca2dd367a7696175bcffdf57a721e5f6656778e..f0b622128a57e37e6f82699d18794eef556f435b 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 db9bdc0be5f0cbfd77e18b490c1b5d74af7af473..f4e0d60966b2bf94010244df9788dfafdd00c01d 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);