Mercurial > libavformat.hg
diff vocdec.c @ 2184:38dd9318e1a6 libavformat
use intreadwrite functions in vocdec
author | aurel |
---|---|
date | Sat, 23 Jun 2007 12:30:40 +0000 |
parents | 1a3c9056982a |
children | cba1f03f958d |
line wrap: on
line diff
--- a/vocdec.c Sat Jun 23 01:20:38 2007 +0000 +++ b/vocdec.c Sat Jun 23 12:30:40 2007 +0000 @@ -30,8 +30,8 @@ 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;