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
This commit is contained in:
reimar 2006-12-18 15:14:23 +00:00
parent 57811efc18
commit 9526342555
1 changed files with 1 additions and 1 deletions

View File

@ -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 {