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 Hoyos <ceffm...@gmail.com> Date: 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