# HG changeset patch # User reimar # Date 1211386057 0 # Node ID 811d717b722ed5f220617a756c27b32c41207a3a # Parent efc90a2bfb1566447367282ee21d22ccc54d81cd Continue detection if it is not clear if we have a MP3 or flac file. Fixes http://samples.mplayerhq.hu/A-codecs/MP3/01%20-%20Charity%20Case.mp3 diff -r efc90a2bfb15 -r 811d717b722e libmpdemux/demux_audio.c --- a/libmpdemux/demux_audio.c Wed May 21 15:25:33 2008 +0000 +++ b/libmpdemux/demux_audio.c Wed May 21 16:07:37 2008 +0000 @@ -293,7 +293,8 @@ } } else if( hdr[0] == 'f' && hdr[1] == 'L' && hdr[2] == 'a' && hdr[3] == 'C' ) { frmt = fLaC; - break; + if (!mp3_hdrs || mp3_hdrs->cons_hdrs < 3) + break; } // Add here some other audio format detection if(step < HDR_SIZE)