# HG changeset patch # User reimar # Date 1166454863 0 # Node ID 0463916369ed5e822f1abb1ae4d62bef07f7d02a # Parent 103aec16f9c45bca2ef5e3eb7a66b80c88fc74fb Require 12 consecutive MPEG-audio headers before detecting as audio. Fixes misdetection of http://samples.mplayerhq.hu/FLV/flv_misdetected_as_mpa diff -r 103aec16f9c4 -r 0463916369ed libmpdemux/demux_audio.c --- 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 {