summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_flac.c
AgeCommit message (Collapse)Author
2008-11-22Add position-based seeking independent from seekpoints.Lorenzo Desole
When it comes to FLAC audio files, seeking relies on seekpoints which are not always present, and even when they are, sometimes it fails. Also, as far as I can see, xine is unable to play a FLAC stream starting at an arbitrary position. Other players (namely mplayer) do not rely on seekpoints when they handle FLAC files and they don't suffer from these problems. With this patch, time-based seeking doesn't change, while position-based seeking is completely independent from seekpoints.
2008-11-07Composer meta-tagMaximilian Schwerin
Date: Sat, 28 Jun 2008 17:29:59 +0200 This patch adds this to the FLAC demuxer.
2008-05-07xine_xmalloc() deprecation: replace its use with static and non-zero size.Diego 'Flameeyes' Pettenò
The xine_xmalloc() function is going to be deprecated, as its behaviour is rarely needed as such, and it's thus misused. With this, almost all uses of xine_xmalloc() with static size (for instance the value returned by sizeof()) or with a size that is guaranteed not to be zero (like strlen()+1) are replaced with calls to either calloc(1, ...) or malloc(). malloc() is used whenever the allocated memory is going to be immediately overwritten, while calloc() is used in every other case, as it sets the whole memory area to zero. --HG-- extra : transplant_source : %8F%98%EC%02%1E%83%F0s%06X%83C%205Y%80%B12%CC%E1
2008-03-28More checking for memory allocation failures.Darren Salt
2008-03-23Replace various malloc(x*sizeof(y)) with calloc(x,sizeof(y)).Darren Salt
2008-02-20Off-by-one in the FLAC security fix, breaking playback of some files.Darren Salt
2008-02-07Add length checking in the FLAC metadata-parsing code.Darren Salt
Make the tracknumber/tracktotal buffer larger (possible overflow).
2008-01-25Advertise proper support for FLAC files.Diego 'Flameeyes' Pettenò
application/x-flac is not reported anywhere. Both file(1) and shared-mime-info report audio/x-flac. Xiph wiki[1] reports audio/flac as being queued for registration. Report both audio/x-flac and audio/flac for compatibility. [1] http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
2007-11-10Delete most of the CVS $Id$/$Log$ lines.Darren Salt
--HG-- extra : transplant_source : %E0%D0%C5%8B%BEU%DD%24%5D7%1F%ADV%AD%EB%23%CBU%80%EB
2007-11-09Update FSF address on non-contributed code and COPYING files.Diego 'Flameeyes' Pettenò
For contributed code, leave whatever the version we last synced for is using to make simpler future syncs.
2007-06-16Rename the BE/LE/ME macros with a _X_ prefix, so they don't clash with ↵Diego 'Flameeyes' Pettenò
Solaris definitions.
2007-06-13Fix compiler warning (pointer arithmetic).Albert Lee
2007-05-29Correctly parse ID3 tags, and avoid skipping over them manually. This ↵Diego 'Flameeyes' Pettenò
reduces again the amount of troublesome FLAC files.
2007-03-29Move streaminfo at the end of the structure to avoid padding.Diego 'Flameeyes' Pettenò
CVS patchset: 8759 CVS date: 2007/03/29 16:52:23
2007-03-03Add two extra functions (inline as they are just a return statement) that ↵Diego 'Flameeyes' Pettenò
checks if a preamble is of an ID3v2 tag, and that calculate the size of the tag (to avoid repeating the same code over and over and over; the size of the shared object is reduced. Also make demux_flac use the id3.c functions to parse the eventual ID3 header. CVS patchset: 8637 CVS date: 2007/03/03 01:41:16
2007-03-02Simplify a lot the code for ID3v2 skip.Diego 'Flameeyes' Pettenò
CVS patchset: 8633 CVS date: 2007/03/02 23:46:29
2007-02-20Fix a lot of format warnings in lprintf calls (mostly %ldd -> %"PRId64").Diego 'Flameeyes' Pettenò
CVS patchset: 8608 CVS date: 2007/02/20 00:34:55
2007-01-19Make get_description get_identifier get_extensions get_mimetypes return a ↵Diego 'Flameeyes' Pettenò
constant string, and make the extensions and mrl vaiables usually declared when testing extension demux strategy constants too. CVS patchset: 8523 CVS date: 2007/01/19 00:26:39
2006-11-09When a FLAC file has an ID3 tag at the start, skip it rather than saying ↵Diego 'Flameeyes' Pettenò
that the file is not playable. CVS patchset: 8363 CVS date: 2006/11/09 23:51:29
2006-11-09Add support for playing OggFlac files (still not 100% complete, but will ↵Diego 'Flameeyes' Pettenò
play). Add a flacutils.h header with functions to parse FLAC data structure, to be shared with demux_flac. Closes bug #1590690. CVS patchset: 8362 CVS date: 2006/11/09 15:13:19
2006-06-02Reshuffle the FLAC demuxer loading a little, copying part of the code overDarren Salt
from the wave demuxer and fixing the "Has audio: no" on FLAC streams. Reference: KDE bug 128217 by Benjamin K. Stuhl. Patch from Gentoo. CVS patchset: 8010 CVS date: 2006/06/02 22:33:37
2006-03-02fix the comment and genre fieldsMike Melanson
CVS patchset: 7916 CVS date: 2006/03/02 14:35:02
2006-03-02support Vorbis-style comments in FLAC, courtesy of Maximilian Schwerin,Mike Melanson
maximilian.schwerin at buelowssiege.de CVS patchset: 7914 CVS date: 2006/03/02 04:18:08
2004-09-22Do not segfault if there is no seekpoint.Thibaut Mattern
CVS patchset: 6992 CVS date: 2004/09/22 20:54:44
2004-09-20Build system improvements:František Dvořák
- use replacement functions (macro AC_REPLACE_FUNCS and variable LTLIBOBJS), each function is in a file placed into lib/ directory, it was not necessary, but it looks nice, IMHO - headers cleanups (this was needed): - prototypes of replacement funtions and macros are placed into separate os_internal.h (and included by config.h) - drop include inttypes.h from public xine.h, replaced by custom os_type.h, idea origins from Ogg/Vorbis public headers - disable generating inttypes.h: generated replacement isn't enough for xine-lib but nobody complained (and for M$VC we have special version) - better including headers for win32, let dvdnav use its mutex wrapper - updated M$VC port Result: - xine is compiled nicely by MinGW, CygWin and paritaly M$VC - frontends in M$VC port don't require additional helping headers - moved some platform specific things from xine-utils and win32/contrib to lib/ Finally I can start with real coding. :-) CVS patchset: 6982 CVS date: 2004/09/20 19:30:02
2004-07-09buffer should be large enought (Thibaut's hunt)Daniel Caujolle-Bert
CVS patchset: 6782 CVS date: 2004/07/09 13:16:59
2004-06-15fix variable declarationsMiguel Freitas
CVS patchset: 6692 CVS date: 2004/06/15 21:22:34
2004-06-14fix compiler warningMichael Roitzsch
CVS patchset: 6687 CVS date: 2004/06/14 13:40:57
2004-06-13implement steps 1, 2, 3 and 4 of the seeking proposal:Miguel Freitas
http://article.gmane.org/gmane.comp.video.xine.devel/9532 it is now up to demuxers to decide what the 0..65535 position means. demuxers tested: ogg, voc, flac, rm, asf, vqa, vob, avi, y4m, au, mov, ts, mp3, mpg, wav, ra, mve CVS patchset: 6686 CVS date: 2004/06/13 21:28:52
2004-06-11new native FLAC demuxerMike Melanson
CVS patchset: 6670 CVS date: 2004/06/11 01:29:49