[FFmpeg-cvslog] lavc/bitstream_filter: Make a cast explicit.

Carl Eugen Hoyos git at videolan.org
Mon Oct 23 00:41:48 EEST 2017


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Wed Mar  1 23:35:14 2017 +0100| [06899863a82c80a91e56c32c65d4e8703fe779b0] | committer: Carl Eugen Hoyos

lavc/bitstream_filter: Make a cast explicit.

Fixes the following gcc warning:
libavcodec/bitstream_filter.c:133:14: warning: assignment discards ‘const’ qualifier from pointer target type

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=06899863a82c80a91e56c32c65d4e8703fe779b0
---

 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 8599b90d4a..d2bf86d894 100644
--- a/libavcodec/bitstream_filter.c
+++ b/libavcodec/bitstream_filter.c
@@ -131,7 +131,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);



More information about the ffmpeg-cvslog mailing list