mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-03 05:22:10 +00:00
pcm: Add const to cast in ENCODE macro.
This fixes a lot of warnings of the sort: libavcodec/pcm.c:105: warning: cast discards qualifiers from pointer target type
This commit is contained in:
parent
d11818eff4
commit
151cd4f982
@ -71,7 +71,7 @@ static av_cold int pcm_encode_close(AVCodecContext *avctx)
|
||||
* @param offset Sample value offset
|
||||
*/
|
||||
#define ENCODE(type, endian, src, dst, n, shift, offset) \
|
||||
samples_##type = (type*)src; \
|
||||
samples_##type = (const type*) src; \
|
||||
for(;n>0;n--) { \
|
||||
register type v = (*samples_##type++ >> shift) + offset; \
|
||||
bytestream_put_##endian(&dst, v); \
|
||||
|
Loading…
Reference in New Issue
Block a user