comparison aea.c @ 6044:33e5c3910738 libavformat

Fix detection of some stereo atrac files by not comparing the block size mode and info byte. Reduced the probe score just in case.
author banan
date Sun, 23 May 2010 21:56:54 +0000
parents 178de7695c6c
children 69289b8cf847
comparison
equal deleted inserted replaced
6043:f8d603e0850f 6044:33e5c3910738
44 return 0; 44 return 0;
45 45
46 /* Check so that the redundant bsm bytes and info bytes are valid 46 /* Check so that the redundant bsm bytes and info bytes are valid
47 * the block size mode bytes have to be the same 47 * the block size mode bytes have to be the same
48 * the info bytes have to be the same 48 * the info bytes have to be the same
49 * the block size mode and info byte can't be the same
50 */ 49 */
51 if (bsm_s == bsm_e && inb_s == inb_e && bsm_s != inb_s) 50 if (bsm_s == bsm_e && inb_s == inb_e)
52 return AVPROBE_SCORE_MAX / 2; 51 return AVPROBE_SCORE_MAX / 2 + 1;
53 } 52 }
54 return 0; 53 return 0;
55 } 54 }
56 55
57 static int aea_read_header(AVFormatContext *s, 56 static int aea_read_header(AVFormatContext *s,