[FFmpeg-cvslog] lavc/opus_rc: Cast a const pointer to uint8_t *.
Carl Eugen Hoyos
git at videolan.org
Sat Dec 22 01:16:09 EET 2018
ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Mon Dec 17 02:36:26 2018 +0100| [6a87729e9da51c72c579d1ef39ed0726d75cb210] | committer: Carl Eugen Hoyos
lavc/opus_rc: Cast a const pointer to uint8_t *.
Silences a warning with clang on arm:
libavcodec/opus_rc.c:170:17: warning: passing 'const uint8_t *' (aka 'const unsigned char *') to parameter of type 'void *' discards qualifiers
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6a87729e9da51c72c579d1ef39ed0726d75cb210
---
libavcodec/opus_rc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/opus_rc.c b/libavcodec/opus_rc.c
index 3972bb0b02..c432eb90c9 100644
--- a/libavcodec/opus_rc.c
+++ b/libavcodec/opus_rc.c
@@ -167,7 +167,7 @@ void ff_opus_rc_put_raw(OpusRangeCoder *rc, uint32_t val, uint32_t count)
rc->rb.cachelen = (rc->rb.cachelen + to_write) % 32;
if (!rc->rb.cachelen && count) {
- AV_WB32(rc->rb.position, rc->rb.cacheval);
+ AV_WB32((uint8_t *)rc->rb.position, rc->rb.cacheval);
rc->rb.bytes += 4;
rc->rb.position -= 4;
rc->rb.cachelen = count - to_write;
More information about the ffmpeg-cvslog
mailing list