summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2010-05-27 20:47:48 +0000
committerReinhard Tartler <siretart@tauware.de>2010-05-27 20:47:48 +0000
commit1746657479b09433dbe7f2cc243aa173ada4964b (patch)
tree8e38888647e29cc888996e251675f118c4362a5b
parent0ff244dea23e5628c71210b9e5b5ee7a1bd68f66 (diff)
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
-rw-r--r--libavformat/aea.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/aea.c b/libavformat/aea.c
index 4b85f91068..6075031abe 100644
--- a/libavformat/aea.c
+++ b/libavformat/aea.c
@@ -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;
}