mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
use intreadwrite functions in vocdec
Originally committed as revision 9395 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
34f18ba853
commit
6bca498d78
@ -30,8 +30,8 @@ static int voc_probe(AVProbeData *p)
|
|||||||
|
|
||||||
if (memcmp(p->buf, voc_magic, sizeof(voc_magic) - 1))
|
if (memcmp(p->buf, voc_magic, sizeof(voc_magic) - 1))
|
||||||
return 0;
|
return 0;
|
||||||
version = p->buf[22] | (p->buf[23] << 8);
|
version = AV_RL16(p->buf + 22);
|
||||||
check = p->buf[24] | (p->buf[25] << 8);
|
check = AV_RL16(p->buf + 24);
|
||||||
if (~version + 0x1234 != check)
|
if (~version + 0x1234 != check)
|
||||||
return 10;
|
return 10;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user