diff options
author | Zdenek Kabelac <kabi@informatics.muni.cz> | 2003-02-10 09:35:32 +0000 |
---|---|---|
committer | Zdenek Kabelac <kabi@informatics.muni.cz> | 2003-02-10 09:35:32 +0000 |
commit | 5c91a6755b6412c918e20ff4735ca30f38a12569 (patch) | |
tree | 054521cdfc6d752e89883ef3fcfc05d6c31fd94c /libavcodec/common.c | |
parent | cd66005ddaebba2d6cb3b4eae75f70ae2446b204 (diff) | |
download | ffmpeg-5c91a6755b6412c918e20ff4735ca30f38a12569.tar.gz |
* static,const,compiler warning cleanup
Originally committed as revision 1567 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/common.c')
-rw-r--r-- | libavcodec/common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/common.c b/libavcodec/common.c index aa766280b3..8c280f5e9a 100644 --- a/libavcodec/common.c +++ b/libavcodec/common.c @@ -160,16 +160,16 @@ int check_marker(GetBitContext *s, const char *msg) #define GET_DATA(v, table, i, wrap, size) \ {\ - const UINT8 *ptr = (UINT8 *)table + i * wrap;\ + const UINT8 *ptr = (const UINT8 *)table + i * wrap;\ switch(size) {\ case 1:\ - v = *(UINT8 *)ptr;\ + v = *(const UINT8 *)ptr;\ break;\ case 2:\ - v = *(UINT16 *)ptr;\ + v = *(const UINT16 *)ptr;\ break;\ default:\ - v = *(UINT32 *)ptr;\ + v = *(const UINT32 *)ptr;\ break;\ }\ } |