Re: [FFmpeg-devel] [PATCH]lavc/avcodec: Constify the return value of av_bitstream_filter_next().
2017-10-22 23:39 GMT+02:00 Carl Eugen Hoyos: > 2017-10-21 21:17 GMT+02:00 Carl Eugen Hoyos : >> Hi! >> >> Attached patch fixes a warning when compiling with sufficiently new gcc. > > Working patch attached. Patch applied. Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] [PATCH]lavc/avcodec: Constify the return value of av_bitstream_filter_next().
2017-10-21 21:17 GMT+02:00 Carl Eugen Hoyos: > Hi! > > Attached patch fixes a warning when compiling with sufficiently new gcc. Working patch attached. Carl Eugen From 19077d0125e1e1eca81dc0311440c1a7da16e080 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sun, 22 Oct 2017 23:38:31 +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 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 40c8fab..dc4659f 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -5951,7 +5951,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 8599b90..b7d9adc 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; -- 1.7.10.4 ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
[FFmpeg-devel] [PATCH]lavc/avcodec: Constify the return value of av_bitstream_filter_next().
Hi! Attached patch fixes a warning when compiling with sufficiently new gcc. Please comment, Carl Eugen From bdb2ad2bc45465675e9fff7313ae5f1b062ec3e1 Mon Sep 17 00:00:00 2001 From: Carl Eugen HoyosDate: Sat, 21 Oct 2017 20:55:01 +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 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 18c3e3e..c9031d1 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -6074,7 +6074,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 /** -- 1.7.10.4 ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel