diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-18 15:14:23 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-18 15:14:23 +0000 |
commit | 9526342555fb93e3dbb78ee67254380ea4ea25bf (patch) | |
tree | 2fd6765ea1e3e0af755518dd58a5eb3e3fabe67f | |
parent | 57811efc18a9d3fba0e3c62cced43ce201013314 (diff) |
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
-rw-r--r-- | libmpdemux/demux_audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |