projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d11818e
)
pcm: Add const to cast in ENCODE macro.
author
Diego Biurrun
<diego@biurrun.de>
Tue, 19 Apr 2011 06:47:59 +0000
(08:47 +0200)
committer
Diego Biurrun
<diego@biurrun.de>
Tue, 19 Apr 2011 14:18:59 +0000
(16:18 +0200)
This fixes a lot of warnings of the sort:
libavcodec/pcm.c:105: warning: cast discards qualifiers from pointer target type
libavcodec/pcm.c
patch
|
blob
|
history
diff --git
a/libavcodec/pcm.c
b/libavcodec/pcm.c
index
e2a7334
..
9100646
100644
(file)
--- a/
libavcodec/pcm.c
+++ b/
libavcodec/pcm.c
@@
-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); \