diff options
Diffstat (limited to 'libavutil/spherical.c')
-rw-r--r-- | libavutil/spherical.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/libavutil/spherical.c b/libavutil/spherical.c index b37db93b23..4be55f36cf 100644 --- a/libavutil/spherical.c +++ b/libavutil/spherical.c @@ -1,24 +1,23 @@ /* * Copyright (c) 2016 Vittorio Giovara <vittorio.giovara@gmail.com> * - * This file is part of Libav. + * This file is part of FFmpeg. * - * Libav is free software; you can redistribute it and/or + * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * - * Libav is distributed in the hope that it will be useful, + * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with Libav; if not, write to the Free Software + * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "common.h" #include "mem.h" #include "spherical.h" @@ -34,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) @@ -60,7 +59,7 @@ static const char *spherical_projection_names[] = { const char *av_spherical_projection_name(enum AVSphericalProjection projection) { - if ((unsigned) projection >= FF_ARRAY_ELEMS(spherical_projection_names)) + if ((unsigned)projection >= FF_ARRAY_ELEMS(spherical_projection_names)) return "unknown"; return spherical_projection_names[projection]; @@ -76,5 +75,5 @@ int av_spherical_from_name(const char *name) return i; } - return AVERROR(EINVAL); + return -1; } |