summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_matroska.c
AgeCommit message (Collapse)Author
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
2008-12-31check size before accessing memory in matroska decodingMatthias Hopf
check the size of allocated buffers to prevent out of bound access
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-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
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.
2009-01-04Fix for CVE-2008-5236.Matthias Hopf
Multiple heap-based buffer overflows in xine-lib 1.1.12, and other 1.1.15 and earlier versions, allow remote attackers to execute arbitrary code via vectors related to (1) a crafted EBML element length processed by the parse_block_group function in demux_matroska.c; (2) a certain combination of sps, w, and h values processed by the real_parse_audio_specific_data and demux_real_send_chunk functions in demux_real.c; and (3) an unspecified combination of three values processed by the open_ra_file function in demux_realaudio.c. NOTE: vector 2 reportedly exists because of an incomplete fix in 1.1.15.
2008-11-20Memory access fixes:František Dvořák
- goom initialization - matroska playing recent files with AAC - replace free() by ffmpeg's av_free() in ff decoders
2008-11-09Matroska and FLI demuxers warning and valgrind fixesFrantisek Dvorak
2008-08-13Use size_t for data length variables.Darren Salt
2008-05-23Remove MIN/MAX macro definitions on unit.Diego 'Flameeyes' Pettenò
Now that the macro are either imported from the system or defined by configure. don't define them in every source file.
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-04-07Fix vorbis initialization problem in the matroska demuxer due to my last ↵Thibaut Mattern
vorbis bugfix. The Vorbis init has to be fixed in a better way, split logic has to be added here, maybe by reusing demux.c code.
2008-03-30Add video/x-matroska.Darren Salt
2008-03-26Be more careful with malloc(x+1), particularly on 32-bit.Darren Salt
2008-02-18Timecode diff is signed.Thibaut Mattern
Should fix bug 35. --HG-- extra : transplant_source : %DD%95%9F%A7%8D%01%BD%98%40%E4R%AAW%F2%ED%93%B2%DE%1A%E9
2008-02-04Check block sizes & frame sizes. Use unsigned variables where appropriate.Mathieu Olivier
2007-12-24Consistently use "colour", "colour key", "colour space" in output.Darren Salt
Some instances of "key colour" remain; ffmpeg is unmodified. This change has caused two strings with two translations to collide (the strings have become identical since some instances already used "colour"). I have therefore arbitrarily dropped the first of the differing translations, the one for the string at src/video_out/video_out_directfb.c:1365.
2007-12-13Free the temporary variables that are allocated, avoid memory leaks.Diego 'Flameeyes' Pettenò
(transplanted from c994a2508893efc4c85f5b49600b7dceec5c890e) --HG-- extra : transplant_source : %C9%94%A2P%88%93%EF%C4%C8_%5BI%60%0B%7D%CE%EC%5C%89%0E
2007-11-11Merge transplanted patches.Darren Salt
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-10-10Stop a really irritating fprintf() that really should not be.Matt Messier
(transplanted from 2b2f2adc8a1e0a05d89354ff259f7b2a331aa071) --HG-- extra : transplant_source : %2B/%2A%DC%8A%1E%0A%05%D8%93T%FF%25%9F%7B%2A3%1A%A0q
2007-07-02Fix demuxing of wavpack files, and avoid crashing with the tags at the end ↵Diego 'Flameeyes' Pettenò
of the file.
2007-06-16Rename the BE/LE/ME macros with a _X_ prefix, so they don't clash with ↵Diego 'Flameeyes' Pettenò
Solaris definitions.
2007-04-10Replace the duplicated meFOURCC macro with ME_FOURCC that is declared in ↵Diego 'Flameeyes' Pettenò
bswap.h already. (transplanted from a7820d16324dbc6fd6b35481a78ff532f59ebe71) --HG-- extra : transplant_source : %A7%82%0D%162M%BCo%D6%B3T%81%A7%8F%F52%F5%9E%BEq
2007-03-12Allow DTS audio tracks in Matroska files. Sample reported by Stefan Monov.Diego 'Flameeyes' Pettenò
CVS patchset: 8663 CVS date: 2007/03/12 16:27:21
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
2007-01-07Fix demuxing of uncompressed VobSub subtitles in Matroska filesMathieu Olivier
CVS patchset: 8490 CVS date: 2007/01/07 12:33:50
2006-11-14Implement decoding of A_MS/ACM streams in Matroska files. It is the ↵Diego 'Flameeyes' Pettenò
equivament of the A_MS/VFW/FOURCC for audio tracks. CVS patchset: 8377 CVS date: 2006/11/14 14:17:31
2006-09-26Don't check ebml value, after all dispose_ebml_parser() is just an alias to ↵Diego 'Flameeyes' Pettenò
free(), and it accepts NULL just fine. CVS patchset: 8280 CVS date: 2006/09/26 00:07:05
2006-07-10Implement visibility support, available on GCC 4.0 and later and on some 3.4 ↵Diego 'Flameeyes' Pettenò
(through backports), to avoid exporting unneeded internal symbols, making plugins' loading faster and use of internal copies of libraries more solid. It should automatically fall back to the old way in GCCs that does not support -fvisibility=hidden, but has to be tested carefully. No issues were found in the months of testing in Gentoo, but this requires special attention anyway. CVS patchset: 8101 CVS date: 2006/07/10 22:08:12
2006-06-02Various static/const fixes from Gentoo.Darren Salt
CVS patchset: 8009 CVS date: 2006/06/02 22:18:56
2006-05-03Make various arrays and structures (mainly xine_plugin_info) const.Darren Salt
(Diego Pettenò) CVS patchset: 7985 CVS date: 2006/05/03 19:46:06
2006-03-11[coverity]Thibaut Mattern
CID: 268 Checker: UNINIT (help) File: xine-lib/src/demuxers/demux_matroska.c Function: parse_seek_entry Description: Using uninitialized value "id" CVS patchset: 7925 CVS date: 2006/03/11 09:03:24
2006-01-24Simplified a bit the calculation of the lace sizes for Xiph lacingMathieu Olivier
CVS patchset: 7842 CVS date: 2006/01/24 22:01:05
2006-01-24Matroska demuxer was miscalculating the lace sizes for fixed-size lacingMathieu Olivier
CVS patchset: 7841 CVS date: 2006/01/24 21:59:13
2005-11-28*BUGFIX*František Dvořák
Improved cross-compiling: detect and precedence of the host-specific libs W32dll: enabled by platforms as originaly, user can override it Fixed shell errors in the Makefile of the hackersguide Detect the place of SDL header independently on platform Fixed spelling in CDDA, include the header sys/param.h if available Fixed format strings (fix warnings (or even bugs) on Gentoo/FreeBSD) CVS patchset: 7815 CVS date: 2005/11/28 12:24:56
2005-10-03Fixed aac detection bug.Thibaut Mattern
CVS patchset: 7753 CVS date: 2005/10/03 18:22:29
2005-10-02Fixed mpeg4 ASP.Thibaut Mattern
CVS patchset: 7751 CVS date: 2005/10/02 21:44:33
2005-10-02Added H264 support.Thibaut Mattern
CVS patchset: 7750 CVS date: 2005/10/02 21:29:39
2005-07-29Add support for mpeg1/2 video in matroskaJames Stembridge
CVS patchset: 7694 CVS date: 2005/07/29 17:57:00
2005-07-16Create DecoderSpecificInfo for AAC tracks. Fixes HE-AAC in Matroska playback.James Stembridge
CVS patchset: 7646 CVS date: 2005/07/16 17:50:58
2005-06-09Fixed empty master element handling.Thibaut Mattern
CVS patchset: 7616 CVS date: 2005/06/09 17:46:15
2005-02-06Added node_plugin_t pointer to the demux struct.Thibaut Mattern
Incremented demux API version. This is needed to unload plugins. CVS patchset: 7385 CVS date: 2005/02/06 15:26:00
2005-02-03**BUGFIX**František Dvořák
Fixed build on solaris: - use libresolv in hstrerror check - replace PRIiMAX and PRIXMAX by PRIdMAX and PRIxMAX Removed timezone struct for MinGW from public os_types.h, update header comment. Fixed build musepack library on some platforms using xine types. Thanks to Niki W. Waibel for reporting and testing. CVS patchset: 7378 CVS date: 2005/02/03 07:19:03
2004-12-13AC3 supportMiguel Freitas
CVS patchset: 7243 CVS date: 2004/12/13 16:07:43
2004-09-17Warning patch for Win32 - casted off_t to intmax_t for printing.František Dvořák
CVS patchset: 6979 CVS date: 2004/09/17 19:21:33
2004-08-27generic mechanism for specifying subtitles encoding at demuxer levelMiguel Freitas
fixes problems with matroska utf-8 subtitles CVS patchset: 6911 CVS date: 2004/08/27 21:07:31