changeset 26812:811d717b722e

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
author reimar
date Wed, 21 May 2008 16:07:37 +0000
parents efc90a2bfb15
children 6d600082d7c1
files libmpdemux/demux_audio.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)