aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-12-17 02:36:26 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-12-22 00:15:16 +0100
commit6a87729e9da51c72c579d1ef39ed0726d75cb210 (patch)
treef789bcb3b99b89a66ba965953f44a4e26ed431f4
parent2744d6b364c058286455571073b71de605d0a04b (diff)
downloadffmpeg-6a87729e9da51c72c579d1ef39ed0726d75cb210.tar.gz
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
-rw-r--r--libavcodec/opus_rc.c2
1 files changed, 1 insertions, 1 deletions
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;