Mercurial > mplayer.hg
changeset 21650:0463916369ed
Require 12 consecutive MPEG-audio headers before detecting as audio.
Fixes misdetection of http://samples.mplayerhq.hu/FLV/flv_misdetected_as_mpa
author | reimar |
---|---|
date | Mon, 18 Dec 2006 15:14:23 +0000 |
parents | 103aec16f9c4 |
children | 54aef84a6b50 |
files | libmpdemux/demux_audio.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_audio.c Mon Dec 18 01:19:34 2006 +0000 +++ b/libmpdemux/demux_audio.c Mon Dec 18 15:14:23 2006 +0000 @@ -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 {