From: Aurelien Jacobs Date: Sat, 23 Jun 2007 12:30:40 +0000 (+0000) Subject: use intreadwrite functions in vocdec X-Git-Tag: v0.5~8607 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6bca498d78703c7cce611ddac98e489acb4a2ff5;p=platform%2Fupstream%2Flibav.git use intreadwrite functions in vocdec Originally committed as revision 9395 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavformat/vocdec.c b/libavformat/vocdec.c index c91baa6..6f5e58a 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;