Browse Source

Fix detection of some stereo atrac files by not comparing the

block size mode and info byte.


backport r23272 by banan


Originally committed as revision 23355 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
tags/v0.6
Reinhard Tartler 15 years ago
parent
commit
1746657479
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      libavformat/aea.c

+ 2
- 3
libavformat/aea.c View File

@@ -46,10 +46,9 @@ static int aea_read_probe(AVProbeData *p)
/* Check so that the redundant bsm bytes and info bytes are valid
* the block size mode bytes have to be the same
* the info bytes have to be the same
* the block size mode and info byte can't be the same
*/
if (bsm_s == bsm_e && inb_s == inb_e && bsm_s != inb_s)
return AVPROBE_SCORE_MAX / 2;
if (bsm_s == bsm_e && inb_s == inb_e)
return AVPROBE_SCORE_MAX / 2 + 1;
}
return 0;
}


Loading…
Cancel
Save