[MPlayer-cvslog] r21666 - trunk/libmpdemux/demux_audio.c

reimar subversion at mplayerhq.hu
Mon Dec 18 16:14:23 CET 2006


Author: reimar
Date: Mon Dec 18 16:14:23 2006
New Revision: 21666

Modified:
   trunk/libmpdemux/demux_audio.c

Log:
Require 12 consecutive MPEG-audio headers before detecting as audio.
Fixes misdetection of http://samples.mplayerhq.hu/FLV/flv_misdetected_as_mpa


Modified: trunk/libmpdemux/demux_audio.c
==============================================================================
--- trunk/libmpdemux/demux_audio.c	(original)
+++ trunk/libmpdemux/demux_audio.c	Mon Dec 18 16:14:23 2006
@@ -32,7 +32,7 @@
 #define MAX_WAVHDR_LEN (1 * 1024 * 1024)
 
 // how many valid frames in a row we need before accepting as valid MP3
-#define MIN_MP3_HDRS 5
+#define MIN_MP3_HDRS 12
 
 //! Used to describe a potential (chain of) MP3 headers we found
 typedef struct mp3_hdr {



More information about the MPlayer-cvslog mailing list