[MPlayer-cvslog] r26844 - trunk/libmpdemux/demux_audio.c
reimar
subversion at mplayerhq.hu
Wed May 21 18:07:37 CEST 2008
Author: reimar
Date: Wed May 21 18:07:37 2008
New Revision: 26844
Log:
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
Modified:
trunk/libmpdemux/demux_audio.c
Modified: trunk/libmpdemux/demux_audio.c
==============================================================================
--- trunk/libmpdemux/demux_audio.c (original)
+++ trunk/libmpdemux/demux_audio.c Wed May 21 18:07:37 2008
@@ -293,7 +293,8 @@ static int demux_audio_open(demuxer_t* d
}
} 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)
More information about the MPlayer-cvslog
mailing list