summaryrefslogtreecommitdiff
path: root/src/demuxers
AgeCommit message (Collapse)Author
2009-10-15Make the XML lexer and parser re-entrantMatt Kraai
2009-10-13#include guards and __attribute__ fixupsCarlo Bramini
2009-08-31Fixed selecting HDMV SPU trackPetri Hintukainen
2009-08-31Demux HDMV/BluRay bitmap subtitlesPetri Hintukainen
2009-08-31added spu_type parameter to demux_send_special_spu_buf()Petri Hintukainen
2009-08-31Fixed audio. HDMV uses PES stream 0xfd instead of 0xbd.Petri Hintukainen
2009-08-31Support for BluRay/HDMV 192-byte TS packetsPetri Hintukainen
2009-08-31PKT_SIZE --> this->pkt_size (in selected places)Petri Hintukainen
2009-08-31Cosmetics. Splitted detect_ts() from open_plugin().Petri Hintukainen
2009-10-10Extended Matroska demuxerNicos Gollan
This adds the following functionality: * Read segment title and uses that for display in a UI There is an issue when the file does not specify a segment title. It will then fall back to a generic "(No title)", since I could not find a way to retrieve the file name the player shows. * More implementation files Added: - demux_matroska.h - demux_matroska_chapters.h This breaks the OO-ish C visibility a bit, since there need to be public (i.e. non-static) interfaces between the units. * Chapter Handling I did a rough initial implementation of Matroska's "editions" system. The demuxer will parse all editions from the header, and for each edition the top level of chapters. This is not quite the full spec as Matroska intends, but it should work fine as long as there is only a single edition and all editions/chapters only reference only one (the first and only) segment in the stream, and are supposed to apply to all tracks therein. When the stream has chapters, the demuxer will now handle skip events from the player to jump between chapters.
2009-10-10Fix parsing of ID3 tag content lengths.Darren Salt
2009-10-10MOD reported zero-length workaround (avoids divide-by-0).Darren Salt
2009-08-26Add a user agent & protocol hack to allow viewing of Apple film trailers.Darren Salt
2009-06-11Add some missing BUF_FLAG_PREVIEW in preview_mode.Reinhard Nißl
--HG-- extra : transplant_source : %F5K%AE%D3f%EFQ%F5U%E5%FE%BB%1E.%2Beh%C5%20%7F
2009-05-31Fix seeking in large raw DV filesScott Bigham
start_pos is of type off_t, and since we compile with D_FILE_OFFSET_BITS=64, -off_t is a 64-bit long long int, so you'd think we'd be fine here -- but we aren't, because start_time, this->duration and this->frame_size are all 32-bit ints, which means that the computed seek position gets truncated to 32 bits before it's assigned to start_pos. The simple solution is to cast start_time to off_t, expanding the computation to 64 bits in time to avoid truncation.
2009-04-26Fix CD gapless playback.Christopher Martin
Similar to the fix in cset 86b9162cfcfe.
2009-04-25Merge -gapless branch.Darren Salt
2009-04-25Revert indentation changes.Darren Salt
2009-04-06A trivial harmless little length test off-by-one.Darren Salt
2009-04-05Fix handling of the length of UTF-16 content sourced from, e.g., ID3 tags.Darren Salt
This avoids use of strlen(), which doesn't cope well with UTF-16, and also has the ID3 parser double-NUL-terminate the buffered string.
2009-04-05Properly NUL-terminate when reading ID3v2.2 tag content.Darren Salt
2009-04-04Correct invalid MIME info in the MOD demuxer.Darren Salt
2009-04-03Add support for Matroska SIMPLEBLOCK.Ross Alexander
Date: Tue, 17 Feb 2009 15:31:44 +0000
2009-04-01Fix an integer overflow in the Quicktime demuxer.Darren Salt
--HG-- extra : transplant_source : %AE%D3%DCw%0F%073h%5D%C0%B5%A7%BA%2B%95%81%95bT%D6
2009-03-08Fix another possible 4xm demuxer integer overflow.Darren Salt
--HG-- extra : transplant_source : U%AF%FD%B5%60%27Y%7F%B5Q%F796%F7a%98%F0k%B8%EF
2009-04-02Fix up some warnings found while debugging the ID3v2 code.Darren Salt
2009-04-02ID3v2 tags with zero-length content are allowed.Darren Salt
2009-03-25Add Mimetypes to src/demuxers/demux_mod.cShlomi Fish
This patch adds mimetypes to src/demuxers/demux_mod.c for the file types it can handle. After this patch is applied, then xine_get_mime_types() reports them correctly, which allows Amarok 2.x to play them and probably prevents other interoperability problems. Previously Amarok 2.x rejected MOD/S3M/IT/XM/etc. files that were enqueued there when using the xine phonon backend because their mime types were not included in those announced by xine-lib.
2009-03-09MPEG block demuxer fixup (prevents, e.g., segfaults when playing VCDs).Darren Salt
2009-02-10Fix a possible integer overflow in the 4XM demuxer. (TKADV2009-004.txt)Darren Salt
2009-01-18Add allocation checks to the Real MDPR parsing code (ref. CVE-2008-5240).Darren Salt
2009-01-18Remove '#include "config.h"' from all public header files.Darren Salt
This requires that many other files include config.h themselves. Also convert <config.h> to "config.h".
2009-01-17Avoid libtool running ldconfig (where not needed) at install time.Darren Salt
2008-01-14Signedness bug in Matroska PTS calculationDirk Leber
With some mkv files I had many discontinuity events. I found out that if changing the timecode_diff in demux_matroska.c from int to int16_t fixes this problem. Using int will never produce negative values if int is not 16-bit...
2009-01-05Merge security fixes.Darren Salt
2009-01-04Fix WAV demuxer to send the last frames when they don't fit perfectly into ↵Matthias Kretz
the buffer
2008-12-31check number of bytes read by input->read in demuxing mpeg block/pesMatthias Hopf
input->read may return negative error codes or read less than we want so we should check for the right return value instead of just not 0
2008-12-31handle read errors/insufficient data when forwarding asf dataMatthias Hopf
do not forward data if there is not enough
2009-01-01check for buffers smaller than headers in real demuxerThomas Viehmann
check buffer lengths to avoid out of bound access when decoding the header. Based on a patch by Matthias Hopf <mhopf@suse.de>.
2009-01-01Avoid underflow in input size calculation for compressed atomsMatthias Hopf
if the atom size is shorter than the header size, do not try to decompress anything, as this would lead to zlib reading out of bound data.
2008-12-31check size before accessing memory in matroska decodingMatthias Hopf
check the size of allocated buffers to prevent out of bound access
2009-01-01check return value of input->read_block for NULL in yuv_frames demuxingThomas Viehmann
Based on a patch by Matthias Hopf <mhopf@suse.de>.
2008-12-31check return value of input->read_block for NULL in mpeg demuxingMatthias Hopf
2008-12-31abort if buffer for matroska block data cannot be allocatedMatthias Hopf
return error when the allocation function returns NULL Otherwise xine might be induced to segfault by bad user data.
2008-12-31handle read errors when demuxing mpeg dataMatthias Hopf
Some input plugins (e.g. file) return negative error codes from read, this should be treated as no (more) data available.
2009-01-01check for negative/too large return values of get_size when demuxing mod streamsThomas Viehmann
get_size might return -1 (e.g. for streams whose size is unknown), but demux_mod is not able to handle this. This is particularly bad because it is later assigned to unsigned types (demux_mod_t.filesize is size_t). Based on a patch by Matthias Hopf <mhopf@suse.de>.
2008-12-31check for negative return values of read when demuxing mng streamsThomas Viehmann
Some input plugins (e.g. file) return negative error codes from read, this should be treated as no (more) data available. This is particularly bad because the error code is assigned to an unsigned integer variable for use by the caller. Based on a patch by Matthias Hopf <mhopf@suse.de>
2008-12-31check that track's codec_private_len fits in signed variables when decoding ↵Matthias Hopf
matroska while codec_private_len is unsigned, the size is later used to calculate the signed xine_bmiheader.size
2008-12-31handle read errors when forwarding in multiple demuxersMatthias Hopf
Add checks for negative return values in aac,ac3,dts,mpc, nsf,ogg,shn,slave,ts,tta,vox demuxers. Some input plugins (e.g. file) return negative error codes from read, this should be treated as no (more) data available. This is particularly the negative size is then assigned to buf->size, potentially causing overflows elsewhere. The patch also removes the duplication of the (previously) == 0 handler in demux_ac3.
2009-01-04fail to set up codec when fifo is not set upThomas Viehmann
When a track's fifo is not set up (typically because the track type is invalid), do not call init_codec, as all implementations dereference track->fifo, segfaulting if it is NULL.