mirror of https://github.com/mpv-player/mpv
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:
parent
57811efc18
commit
9526342555
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue