comparison tmv.c @ 5322:d09cb951c704 libavformat

Parenthesize correctly in TMV probe
author daniel
date Tue, 20 Oct 2009 19:07:08 +0000
parents 80542fdaba5e
children ed61c8ab8b08
comparison
equal deleted inserted replaced
5321:a4a45f236eec 5322:d09cb951c704
53 AV_RL16(p->buf+4) >= PROBE_MIN_SAMPLE_RATE && 53 AV_RL16(p->buf+4) >= PROBE_MIN_SAMPLE_RATE &&
54 AV_RL16(p->buf+6) >= PROBE_MIN_AUDIO_SIZE && 54 AV_RL16(p->buf+6) >= PROBE_MIN_AUDIO_SIZE &&
55 !p->buf[8] && // compression method 55 !p->buf[8] && // compression method
56 p->buf[9] && // char cols 56 p->buf[9] && // char cols
57 p->buf[10]) // char rows 57 p->buf[10]) // char rows
58 return AVPROBE_SCORE_MAX / (p->buf[9] == 40 && p->buf[10] == 25)? 1 : 4; 58 return AVPROBE_SCORE_MAX /
59 ((p->buf[9] == 40 && p->buf[10] == 25) ? 1 : 4);
59 return 0; 60 return 0;
60 } 61 }
61 62
62 static int tmv_read_header(AVFormatContext *s, AVFormatParameters *ap) 63 static int tmv_read_header(AVFormatContext *s, AVFormatParameters *ap)
63 { 64 {