Hi! Attached patch silences one of three warnings when compiling bitstream_filter.o, I suspect this cast is necessary.
Please comment, Carl Eugen
From 15963817149fd4249f7812b42566eaf23afac6ce Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos <ceho...@ag.or.at> Date: Wed, 1 Mar 2017 23:35:14 +0100 Subject: [PATCH] lavc/bitstream_filter: Make a cast explicit. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the following gcc warning: libavcodec/bitstream_filter.c:133:14: warning: assignment discards âconstâ qualifier from pointer target type --- libavcodec/bitstream_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/bitstream_filter.c b/libavcodec/bitstream_filter.c index 02878e3..0b19fe3 100644 --- a/libavcodec/bitstream_filter.c +++ b/libavcodec/bitstream_filter.c @@ -130,7 +130,7 @@ int av_bitstream_filter_filter(AVBitStreamFilterContext *bsfc, return ret; } - pkt.data = buf; + pkt.data = (uint8_t *)buf; pkt.size = buf_size; ret = av_bsf_send_packet(priv->ctx, &pkt); -- 1.7.10.4
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel