summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_audio.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix MP3 detection (list of found MP3 headers was not kep sorted).reimar2005-04-181-2/+3
| | | | | | | Also remove code that only fixed the symptoms. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15216 b3059339-0415-0410-9bf9-f77b7e298cf2
* nico partially fixed the bug i reported; here's the rest of the fix.rfelker2005-04-171-0/+1
| | | | | | | | | | | | basically demux_audio was mixing data in its header buffer in a bogus manner, whereby it could sometimes "make up" valid mpeg headers where no such header actually occurred in the file. it should be correct now. btw these changes also fix the bug where mplayer reports huge initial cpu usage for sound when playing mp3 files. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15206 b3059339-0415-0410-9bf9-f77b7e298cf2
* skip framelen-4 bytes after having successfully detected an mpeg audio framenicodvb2005-04-171-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15205 b3059339-0415-0410-9bf9-f77b7e298cf2
* assign correct tag, dwScale and dwBlockAlign to mpeg audio; optionally ↵nicodvb2005-04-171-8/+8
| | | | | | assign layer and samples_per_frame when parsing mpa header git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15200 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l to reimar.. sh_audio->samplerate and sh_audio->i_bps are not the samerfelker2005-03-041-4/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14911 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix possible hang when playing broken MP3 from linear stream and removereimar2005-01-291-29/+26
| | | | | | | duplicate code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14609 b3059339-0415-0410-9bf9-f77b7e298cf2
* better, tuneable (via #define) MP3 detection, limit demux_audio to scanningreimar2004-09-281-27/+118
| | | | | | | only the first 30000 bytes for headers. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13504 b3059339-0415-0410-9bf9-f77b7e298cf2
* moved sh_audio initialization from dec_audio to demuxer.c to fixreimar2004-09-161-1/+0
| | | | | | | | -hr-mp3-seek bug (pts was -inf after seeking) and remove the workaround from demux_audio.c. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13358 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix seeking with -hr-mp3-seek. maybe not the best fix (why is last_ptsrfelker2004-09-051-0/+1
| | | | | | | | | | | | | ever infinite?!?!) but at least it makes it work... :) patch by Balazs KOSSOVICS (tevefeju AT freemail.hu): Hi! When we listening music with "-hr-mp3-seek" option, than there is a negative value at the first rewinds in the statusrange (-52 hours, some minutes). The patch is against this. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13257 b3059339-0415-0410-9bf9-f77b7e298cf2
* DTS support via lavc and libdtsrtognimp2004-08-121-0/+40
| | | | | | | | Patch by Aurelien Jacobs ( aurel at gnuage dot org ) dts in wav by me git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13007 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l to me: writing outside allocated memoryrtognimp2004-04-151-1/+1
| | | | | | | | Patch by Mikulas Patocka < mikulas (at) artax (dot) karlin (dot) mff (dot) cuni (dot) cz> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12214 b3059339-0415-0410-9bf9-f77b7e298cf2
* FLAC decoding support via imported libmpflac.lumag2003-10-041-0/+20
| | | | | | | TODO: fix FLAC-in-ogg decoding. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11005 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fixed 'reading after EOF'. demuxers didn't check, how many they've read!lumag2003-09-201-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10892 b3059339-0415-0410-9bf9-f77b7e298cf2
* get_percent_pos support in demux_audio, patch by ROSEN Jeremy <jeremy.rosen ↵faust32003-09-191-0/+21
| | | | | | at c-s.fr> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10883 b3059339-0415-0410-9bf9-f77b7e298cf2
* don't set audio pts to infinity after seeking in mp3 files :)rfelker2003-06-041-0/+1
| | | | | | | (10l) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10245 b3059339-0415-0410-9bf9-f77b7e298cf2
* Warning fix, patch by Dominik Mierzejewskyrtognimp2003-03-221-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9656 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l cbSize not inited for l=16.\n Could give problem in print_wave_headerrtognimp2003-03-171-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9617 b3059339-0415-0410-9bf9-f77b7e298cf2
* Same behaviour as old code for short headersrtognimp2003-03-151-2/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9597 b3059339-0415-0410-9bf9-f77b7e298cf2
* Read extradata for wav files, based on patch by <dimakar(at)yahoo.com>. ↵rtognimp2003-03-151-5/+16
| | | | | | Required for truespeech files. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9592 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed mp3 seeking near end of filearpi2002-12-041-2/+3
| | | | | | | patch by ??? (sorry i can't find that mail) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8360 b3059339-0415-0410-9bf9-f77b7e298cf2
* *HUGE* set of compiler warning fixes, unused variables removalarpi2002-11-061-0/+1
| | | | | | | based on patch by Dominik Mierzejewski <dominik@rangers.eu.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8124 b3059339-0415-0410-9bf9-f77b7e298cf2
* skip id3v2 junk when looking for mp3rfelker2002-11-051-0/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8117 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10larpi2002-11-051-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8111 b3059339-0415-0410-9bf9-f77b7e298cf2
* A-V sync cleanup: sh_audio->timer replaced by sh_audio->delay, it containsarpi2002-11-021-3/+3
| | | | | | | | delay relative to sh_video->timer (or to 0 if audioonly). It fixes ct: drifts of very long (several hours) playback. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8057 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanup config option handling in libmpdemux.arpi2002-10-231-14/+1
| | | | | | | | removed overcompilacted m_config_register_options() mess - export the subconfig structs instead git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7868 b3059339-0415-0410-9bf9-f77b7e298cf2
* dump wav headerarpi2002-10-221-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7848 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix vbr muxing and win32 codec crash on initalbeu2002-07-211-3/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6764 b3059339-0415-0410-9bf9-f77b7e298cf2
* Uninit addedalbeu2002-04-241-0/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5813 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix % seekingalbeu2002-04-231-4/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5797 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added pts for mp3 and wav. And perfect seeking for mp3, unless flags & 2albeu2002-02-201-7/+65
| | | | | | | wich is % seeking git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4765 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed WAV demuxer so that it skips to the actual start of the audio datamelanson2002-02-161-1/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4721 b3059339-0415-0410-9bf9-f77b7e298cf2
* We should skip exactly the first frame on mp3 files.albeu2002-02-151-3/+2
| | | | | | | Should correct many badly detected file, decoder crash, etc git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4718 b3059339-0415-0410-9bf9-f77b7e298cf2
* mp3 position fixedarpi2002-02-151-2/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4713 b3059339-0415-0410-9bf9-f77b7e298cf2
* Improved mp3 detection (don't detect mpeg1/2 as mp3 anymore)albeu2002-02-141-2/+15
| | | | | | | Added resync_audio call git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4701 b3059339-0415-0410-9bf9-f77b7e298cf2
* Audio file demuxer. Extended version for demuxer info.albeu2002-02-141-0/+249
genres.h come from id3edit of servex@servex.yi.org found at http://id3edit.sourceforge.net/ git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4695 b3059339-0415-0410-9bf9-f77b7e298cf2