From 9526342555fb93e3dbb78ee67254380ea4ea25bf Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 18 Dec 2006 15:14:23 +0000 Subject: [PATCH] Require 12 consecutive MPEG-audio headers before detecting as audio. Fixes misdetection of http://samples.mplayerhq.hu/FLV/flv_misdetected_as_mpa git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21666 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpdemux/demux_audio.c b/libmpdemux/demux_audio.c index 0c47df9e16..ae73fa852a 100644 --- a/libmpdemux/demux_audio.c +++ b/libmpdemux/demux_audio.c @@ -32,7 +32,7 @@ typedef struct da_priv { #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 {