comparison sol.c @ 6247:a64b9fa63635 libavformat

bswap: change ME to NE in macro names Other parts of FFmpeg use NE (native endian) rather than ME (machine). This makes it consistent.
author mru
date Sat, 10 Jul 2010 22:09:01 +0000
parents 536e5527c1e0
children e630da0f5861
comparison
equal deleted inserted replaced
6246:79fc252c65cd 6247:a64b9fa63635
32 32
33 static int sol_probe(AVProbeData *p) 33 static int sol_probe(AVProbeData *p)
34 { 34 {
35 /* check file header */ 35 /* check file header */
36 uint16_t magic; 36 uint16_t magic;
37 magic=le2me_16(*((uint16_t*)p->buf)); 37 magic=le2ne_16(*((uint16_t*)p->buf));
38 if ((magic == 0x0B8D || magic == 0x0C0D || magic == 0x0C8D) && 38 if ((magic == 0x0B8D || magic == 0x0C0D || magic == 0x0C8D) &&
39 p->buf[2] == 'S' && p->buf[3] == 'O' && 39 p->buf[2] == 'S' && p->buf[3] == 'O' &&
40 p->buf[4] == 'L' && p->buf[5] == 0) 40 p->buf[4] == 'L' && p->buf[5] == 0)
41 return AVPROBE_SCORE_MAX; 41 return AVPROBE_SCORE_MAX;
42 else 42 else