changeset 2184:38dd9318e1a6 libavformat

use intreadwrite functions in vocdec
author aurel
date Sat, 23 Jun 2007 12:30:40 +0000
parents 62931a89c858
children 7dd08e645d92
files vocdec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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;