[FFmpeg-devel] [PATCH]lavc/bitstream_filter: Make a cast explicit
Carl Eugen Hoyos
cehoyos at ag.or.at
Thu Mar 2 00:36:58 EET 2017
Hi!
Attached patch silences one of three warnings when compiling
bitstream_filter.o, I suspect this cast is necessary.
Please comment, Carl Eugen
-------------- next part --------------
From 15963817149fd4249f7812b42566eaf23afac6ce Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos at 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
More information about the ffmpeg-devel
mailing list