mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
2744d6b364
commit
6a87729e9d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user