From f2c867051c8fb2eb06c1b43a4b08d60a1eafd987 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 26 Oct 2017 18:29:02 +0200 Subject: [PATCH] lavc/avcodec: Constify the return value of av_bitstream_filter_next(). Fixes the following gcc warning: libavcodec/bitstream_filter.c:39:12: warning: return discards 'const' qualifier from pointer target type --- libavcodec/avcodec.h | 2 +- libavcodec/bitstream_filter.c | 2 +- libavcodec/version.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 5f13f865e4f..ee7834c8a29 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -5484,7 +5484,7 @@ void av_bitstream_filter_close(AVBitStreamFilterContext *bsf); * filters. */ attribute_deprecated -AVBitStreamFilter *av_bitstream_filter_next(const AVBitStreamFilter *f); +const AVBitStreamFilter *av_bitstream_filter_next(const AVBitStreamFilter *f); #endif /** diff --git a/libavcodec/bitstream_filter.c b/libavcodec/bitstream_filter.c index d2bf86d894a..ed1cf3335ba 100644 --- a/libavcodec/bitstream_filter.c +++ b/libavcodec/bitstream_filter.c @@ -28,7 +28,7 @@ #if FF_API_OLD_BSF FF_DISABLE_DEPRECATION_WARNINGS -AVBitStreamFilter *av_bitstream_filter_next(const AVBitStreamFilter *f) +const AVBitStreamFilter *av_bitstream_filter_next(const AVBitStreamFilter *f) { const AVBitStreamFilter *filter = NULL; void *opaque = NULL; diff --git a/libavcodec/version.h b/libavcodec/version.h index 69f124a4c61..226da1935fe 100644 --- a/libavcodec/version.h +++ b/libavcodec/version.h @@ -29,7 +29,7 @@ #define LIBAVCODEC_VERSION_MAJOR 58 #define LIBAVCODEC_VERSION_MINOR 0 -#define LIBAVCODEC_VERSION_MICRO 100 +#define LIBAVCODEC_VERSION_MICRO 101 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ LIBAVCODEC_VERSION_MINOR, \ -- 2.39.5