changeset 32590:10b9ac971ef6

Add support for FLAC audio parsing, fixes playback time jumping wildly.
author reimar
date Wed, 08 Dec 2010 19:43:51 +0000
parents 23f25ad2c45f
children 4cd3a8a22748
files libmpdemux/demux_audio.c libmpdemux/demuxer.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_audio.c	Tue Dec 07 15:27:11 2010 +0000
+++ b/libmpdemux/demux_audio.c	Wed Dec 08 19:43:51 2010 +0000
@@ -497,6 +497,7 @@
 	    }
 	    if (sh_audio->i_bps < 1) // guess value to prevent crash
 	      sh_audio->i_bps = 64 * 1024;
+	    sh_audio->needs_parsing = 1;
 //	    get_flac_metadata (demuxer);
 	    break;
   }
--- a/libmpdemux/demuxer.c	Tue Dec 07 15:27:11 2010 +0000
+++ b/libmpdemux/demuxer.c	Wed Dec 08 19:43:51 2010 +0000
@@ -490,6 +490,9 @@
     case 0x86:
         codec_id = CODEC_ID_DTS;
         break;
+    case MKTAG('f', 'L', 'a', 'C'):
+        codec_id = CODEC_ID_FLAC;
+        break;
     case MKTAG('M', 'L', 'P', ' '):
         codec_id = CODEC_ID_MLP;
         break;