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:
0fe0462
)
Do not modify input data
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sat, 2 Feb 2008 08:28:07 +0000
(08:28 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sat, 2 Feb 2008 08:28:07 +0000
(08:28 +0000)
Originally committed as revision 11805 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/imc.c
patch
|
blob
|
history
diff --git
a/libavcodec/imc.c
b/libavcodec/imc.c
index
ed2e203
..
35702f9
100644
(file)
--- a/
libavcodec/imc.c
+++ b/
libavcodec/imc.c
@@
-636,12
+636,12
@@
static int imc_decode_frame(AVCodecContext * avctx,
int flag;
int bits, summer;
int counter, bitscount;
- uint16_t
*buf16 = (uint16_t *) buf
;
+ uint16_t
buf16[IMC_BLOCK_SIZE / 2]
;
for(i = 0; i < IMC_BLOCK_SIZE / 2; i++)
- buf16[i] = bswap_16(
buf16
[i]);
+ buf16[i] = bswap_16(
((const uint16_t*)buf)
[i]);
- init_get_bits(&q->gb,
buf
, IMC_BLOCK_SIZE * 8);
+ init_get_bits(&q->gb,
(const uint8_t*)buf16
, IMC_BLOCK_SIZE * 8);
/* Check the frame header */
imc_hdr = get_bits(&q->gb, 9);