Commit a15b8343 authored by kostya's avatar kostya

Do not modify input data

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11805 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1151e408
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment