comparison sol.c @ 6248:e630da0f5861 libavformat

Add av_ prefix to bswap macros
author mru
date Sat, 10 Jul 2010 22:12:30 +0000
parents a64b9fa63635
children 4aaed59641ff
comparison
equal deleted inserted replaced
6247:a64b9fa63635 6248:e630da0f5861
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=le2ne_16(*((uint16_t*)p->buf)); 37 magic=av_le2ne16(*((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