Commit ec3b3279 authored by aurel's avatar aurel

use intreadwrite functions in vocdec

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9395 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2e46af0a
No related merge requests found
......@@ -30,8 +30,8 @@ static int voc_probe(AVProbeData *p)
if (memcmp(p->buf, voc_magic, sizeof(voc_magic) - 1))
return 0;
version = p->buf[22] | (p->buf[23] << 8);
check = p->buf[24] | (p->buf[25] << 8);
version = AV_RL16(p->buf + 22);
check = AV_RL16(p->buf + 24);
if (~version + 0x1234 != check)
return 10;
......
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