[FFmpeg-cvslog] r23355 - in branches/0.6: . libavformat/aea.c

siretart subversion
Thu May 27 22:47:48 CEST 2010


Author: siretart
Date: Thu May 27 22:47:48 2010
New Revision: 23355

Log:
Fix detection of some stereo atrac files by not comparing the
block size mode and info byte.


backport r23272 by banan

Modified:
   branches/0.6/   (props changed)
   branches/0.6/libavformat/aea.c

Modified: branches/0.6/libavformat/aea.c
==============================================================================
--- branches/0.6/libavformat/aea.c	Thu May 27 22:47:03 2010	(r23354)
+++ branches/0.6/libavformat/aea.c	Thu May 27 22:47:48 2010	(r23355)
@@ -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;
 }



More information about the ffmpeg-cvslog mailing list