[FFmpeg-cvslog] lavc/avcodec: Constify AVBitStreamFilter* in AVBitStreamFilterContext struct.
Carl Eugen Hoyos
git at videolan.org
Sat Mar 18 00:49:05 EET 2017
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Mar 16 22:31:44 2017 +0100| [9e6b269fea260a4f4cd15d1c0f77b21addee342a] | committer: Carl Eugen Hoyos
lavc/avcodec: Constify AVBitStreamFilter* in AVBitStreamFilterContext struct.
Fixes a gcc warning:
libavcodec/bitstream_filter.c:71:20: warning: assignment discards 'const' qualifier from pointer target type
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9e6b269fea260a4f4cd15d1c0f77b21addee342a
---
libavcodec/avcodec.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 1923c96..8774718 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -5764,7 +5764,7 @@ int av_get_audio_frame_duration2(AVCodecParameters *par, int frame_bytes);
#if FF_API_OLD_BSF
typedef struct AVBitStreamFilterContext {
void *priv_data;
- struct AVBitStreamFilter *filter;
+ const struct AVBitStreamFilter *filter;
AVCodecParserContext *parser;
struct AVBitStreamFilterContext *next;
/**
More information about the ffmpeg-cvslog
mailing list