summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_ogg.c
AgeCommit message (Collapse)Author
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.
2008-08-07Fix crashes with fuzzed Ogg files. (CVE-2008-3231)Darren Salt
--HG-- extra : transplant_source : %9F%E8R%D8%94R%9CJ%7F%5E%A7%DB%29%0DK%CD%CA%AD%7F%08
2008-07-04Simplify signature checks, especially for OggFLAC files.Diego 'Flameeyes' Pettenò
Use memcmp over the signature rather than checking byte by byte. --HG-- extra : transplant_source : %B3%8B%EE%85%B9%11%B0%10po%D9%17%CD%034%FC%F5%90%95%92
2008-05-09Avoid 1KB buffer for decoding anxdata headers.Diego 'Flameeyes' Pettenò
Instead of using a 1KB buffer to copy over the Content-Type header value to compare it, get a (pointer, length) pair and use that for comparison. This should also allow the compiler to inline the decode_anxdata_header() function. --HG-- extra : transplant_source : W%EE%5CN%BD%B8%8C%FA%CD%15p%CD%A5%CBQ%1E%893%97S
2008-05-09Don't use t_title array after it got out of the scope.Diego 'Flameeyes' Pettenò
In update_chapter_display() the t_title array, declared on the buffer, is used after it has disappeared from the scope. Instead of doing that, use directly the xine_ui_data_t array. Declare xine_event_t and xine_ui_data_t with their values directly, makes it more explicit that everything disappears at the end of the function. --HG-- extra : transplant_source : %25T%10eEd%CF%ECS%AC%A3%E3%E0%D3J%F6%A5%15%9EE
2008-05-07Avoid memset() on newly allocated memory areas.Diego 'Flameeyes' Pettenò
If needed, use calloc() to allocate the area so that it's already reset by the time it returns.
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-06Add some newer Ogg MIME types.Darren Salt
2008-03-07Get rid of some "may be used uninitialised" warnings.Darren Salt
2008-01-26Fix a few recently-caused compiler warnings.Darren Salt
2008-01-25Report unofficial mimetypes (x- variants) for the Ogg demuxer too.Diego 'Flameeyes' Pettenò
2008-01-14Update mimetypes for Annodex and Ogg.Diego 'Flameeyes' Pettenò
2008-01-14Support all the extensions reported by xiph's documentation (plus ogm).Diego 'Flameeyes' Pettenò
2007-12-13Set stream information only when reading a streaminfo FLAC block.Diego 'Flameeyes' Pettenò
(transplanted from 6d9f36be48839984c3888f3d803319942c4d76e6) --HG-- extra : transplant_source : E%81r%E5-%5B%C2%21%15h%E3_%CB%23%25%9B%01l%03Y
2007-12-02silence stdout of ogg demuxerMatthias Kretz
2007-11-23Merge.Darren Salt
2007-11-23fix read_ogg_packet to really read all of the data; don't go into ↵Matthias Kretz
DEMUX_FINISHED from send_header
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-03-29More reordering to reduce padding.Diego 'Flameeyes' Pettenò
CVS patchset: 8773 CVS date: 2007/03/29 19:38:51
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-02-08Remove any possibility of strcpy/sprintf overflows wrt front ends requestingDarren Salt
language & subtitle strings (given a buffer of >= XINE_LANG_MAX bytes). Also fixes an off-by-one buffer termination in the TS code. (Note: compile-tested only.) CVS patchset: 8592 CVS date: 2007/02/08 02:40:22
2007-01-23- Don't try to print "<title> / <chapter>" if there's no title, avoidBastien Nocera
things like "(null) / Chapter 1" when the title isn't available (and a possible crasher on non-Linux platforms) CVS patchset: 8547 CVS date: 2007/01/23 23:20:23
2007-01-22Added mimetype application/ogg.Claudio Ciccani
Use a more generic description for application/(x-)ogg mimetype (i.e. "Ogg Stream"). CVS patchset: 8542 CVS date: 2007/01/22 17:33:35
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-10Properly set the video as unhandled if there are more video tracks unhandled ↵Diego 'Flameeyes' Pettenò
than handled. Thanks to Bastien Nocera in bug #1577272. CVS patchset: 8367 CVS date: 2006/11/10 14:53:23
2006-11-10Even if video is not handled, let's say that it is there, so the frontends ↵Diego 'Flameeyes' Pettenò
can consider the decoder plugin missing. CVS patchset: 8365 CVS date: 2006/11/10 01:00:35
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-09-14Suppose we're using a Speex version new enough to have the speex subdir ↵Diego 'Flameeyes' Pettenò
every time, to simplify configure checks. CVS patchset: 8243 CVS date: 2006/09/14 02:04:48
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
2005-04-27Fixed division by 0Thibaut Mattern
CVS patchset: 7508 CVS date: 2005/04/27 17:56:07
2005-02-14Cache the theora granuleshift when reading theora headers, and condenseConrad Parker
the theora and cmml get_pts() calculations. CVS patchset: 7415 CVS date: 2005/02/14 06:25:59
2005-02-14fix calculation of CMML pts: actually use granulerates from CMML/AnxDataConrad Parker
headers, and also add support for CMML granuleshift CVS patchset: 7414 CVS date: 2005/02/14 05:56:56
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
2004-12-21add CMML bos page reconizerConrad Parker
CVS patchset: 7292 CVS date: 2004/12/21 05:30:40
2004-12-17Fix header buffer leak.Thibaut Mattern
CVS patchset: 7270 CVS date: 2004/12/17 20:48:39
2004-12-17Simple chained streams supportThibaut Mattern
Test stream: http://ogg.smgradio.com/vr96.ogg Should fix problems reported with ogg/vorbis radios. CVS patchset: 7266 CVS date: 2004/12/17 00:21:38
2004-12-12Code cleanups and elimination of some compiler warnings; patch courtesy of AL13NAndre Pang
CVS patchset: 7230 CVS date: 2004/12/12 06:55:58
2004-12-03remove unused lenbytes calculation in cmml handlerConrad Parker
CVS patchset: 7188 CVS date: 2004/12/03 04:11:42
2004-09-09Identify CMML (Continuous Media Markup Language) logical bitstreams in AnnodexAndre Pang
media files CVS patchset: 6951 CVS date: 2004/09/09 06:29:20
2004-09-01demux_ogg.c:Andre Pang
Rename LOG_* to DEBUG_* Use llprintf instead of "#ifdef ... lprintf ... #endif" (thanks to Michael and Thibaut for the heads-up about this) CVS patchset: 6928 CVS date: 2004/09/01 18:32:53
2004-09-01Added more fine-grained logging to Ogg demuxer to make output easier to followAndre Pang
CVS patchset: 6923 CVS date: 2004/09/01 00:09:13
2004-08-30add support for speex headers in new location (eg. <speex/speex.h>) forConrad Parker
libspeex-1.1.x: - Retain compatability for <speex.h> etc. from libspeex-1.0.x - Also try speex via pkg-config, and fall back to old AM_PATH_SPEEX CVS patchset: 6920 CVS date: 2004/08/30 12:33:07
2004-07-25a buffer of size 1024 can only be filled with 1023 charactersMichael Roitzsch
CVS patchset: 6847 CVS date: 2004/07/25 17:08:07
2004-07-10Fix for Annodex/Ogg demuxer when detection by extension is used; credit toAndre Pang
James Slorach for spotting the bug CVS patchset: 6784 CVS date: 2004/07/10 14:08:49
2004-07-10Split detect_content function into detect_ogg_content and detect_anx_contentAndre Pang
Scan for "Annodex" header signature in Annodex demuxer Fixed some serious bugs in detect_content at the same time :) CVS patchset: 6783 CVS date: 2004/07/10 10:06:30
2004-07-09Ogg demuxer:Andre Pang
Tiny bugfix for detecting theora streams (was looking for "theo" packet signature due to short memcmp, now looks for "theora") Moved content detection from open_plugin function to new detect_content function Added new plugin to demux Annodex version 2.0 bitstream format, a subset of the Ogg encapsulation format. For more info, see: http://www.annodex.net/TR/draft-pfeiffer-annodex-01.html CVS patchset: 6781 CVS date: 2004/07/09 01:27:42