[MPlayer-cvslog] r32677 - in trunk/libmpdemux: demux_audio.c demuxer.c
reimar
subversion at mplayerhq.hu
Wed Dec 8 20:43:52 CET 2010
Author: reimar
Date: Wed Dec 8 20:43:51 2010
New Revision: 32677
Log:
Add support for FLAC audio parsing, fixes playback time jumping
wildly.
Modified:
trunk/libmpdemux/demux_audio.c
trunk/libmpdemux/demuxer.c
Modified: trunk/libmpdemux/demux_audio.c
==============================================================================
--- trunk/libmpdemux/demux_audio.c Tue Dec 7 16:27:11 2010 (r32676)
+++ trunk/libmpdemux/demux_audio.c Wed Dec 8 20:43:51 2010 (r32677)
@@ -497,6 +497,7 @@ static int demux_audio_open(demuxer_t* d
}
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;
}
Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c Tue Dec 7 16:27:11 2010 (r32676)
+++ trunk/libmpdemux/demuxer.c Wed Dec 8 20:43:51 2010 (r32677)
@@ -490,6 +490,9 @@ static void allocate_parser(AVCodecConte
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;
More information about the MPlayer-cvslog
mailing list