aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2007-06-23 12:30:40 +0000
committerAurelien Jacobs <aurel@gnuage.org>2007-06-23 12:30:40 +0000
commit6bca498d78703c7cce611ddac98e489acb4a2ff5 (patch)
tree07423bd43213e21fc9b6e621e35f262a2c0c7bae /libavformat
parent34f18ba8538161bc3c04557443fadf9dafd2d699 (diff)
downloadffmpeg-6bca498d78703c7cce611ddac98e489acb4a2ff5.tar.gz
use intreadwrite functions in vocdec
Originally committed as revision 9395 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/vocdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/vocdec.c b/libavformat/vocdec.c
index c91baa6db9..6f5e58a3a5 100644
--- a/libavformat/vocdec.c
+++ b/libavformat/vocdec.c
@@ -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;