summaryrefslogtreecommitdiff
path: root/libavformat/oggdec.c
Commit message (Collapse)AuthorAge
* oggdec: prevent heap corruption.Chris Evans2011-07-11
| | | | | | | | Specifically crafted samples can reinit ogg->streams[] while reading samples, and thus we should not cache old pointers since these may no longer be valid. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* ogg: propagate return values and return more meaningful error valuesNicolas George2011-07-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* oggdec: Abort Ogg header parsing when encountering a data packet.Reimar Döffinger2011-07-04
| | | | | | Fixes Bugzilla #11. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* ogg: fix double free when finding length of small chained oggs.Ronald S. Bultje2011-06-29
| | | | | | | | ogg_save() copies streams[], but doesn't keep track of free()'ed struct members. Thus, if in between a call to ogg_save() and ogg_restore(), streams[].private was free()'ed, this would result in a double free -> crash, which happened when e.g. playing small chained ogg fragments.
* Remove stray extra arguments from av_dlog() invocations.Diego Biurrun2011-06-02
|
* Remove unused variablesMans Rullgard2011-06-02
|
* Cosmetics: fix prototypes in oggdecClément Bœsch2011-05-12
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* oggdec: fix memleak with continuous streams.Clément Bœsch2011-05-12
| | | | | | | This avoids the creation of a new AVStream instead of replacing it when a stream reset occurs (track change with some webradios for example). Signed-off-by: Diego Biurrun <diego@biurrun.de>
* oggdec: use explicit AVInputFormat struct initializersClément Bœsch2011-05-12
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* oggdec: simplify ogg_probeClément Bœsch2011-05-12
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Replace some commented-out debug printf() / av_log() messages with av_dlog().Diego Biurrun2011-04-29
|
* oggdec: reindent after 8f3eebd6Clément Bœsch2011-04-24
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* oggdec: use av_freep() instead of av_free()Michael Niedermayer2011-04-20
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* oggdec: simplify audio chained ogg streams supportClément Bœsch2011-04-15
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* oggdec: fix demuxing chained audio streamsClément Bœsch2011-04-10
| | | | | | | | | Chained ogg served by icecast and mpd should demux properly now. Fixes issue2337 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avio: introduce an AVIOContext.seekable fieldAnton Khirnov2011-04-03
| | | | Use it instead of url_is_streamed and AVIOContext.is_streamed.
* avio: deprecate url_feofAnton Khirnov2011-03-07
| | | | | | AVIOContext.eof_reached should be used directly instead. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefix for url_fsizeAnton Khirnov2011-03-07
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: deprecate url_fgetc and remove all it usesAnton Khirnov2011-03-07
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: add avio_tell macro as a replacement for url_ftellAnton Khirnov2011-03-04
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefix for url_fseekAnton Khirnov2011-03-01
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefixes for get_* functionsAnton Khirnov2011-02-21
| | | | | | | | | | | | | | In the name of consistency: get_byte -> avio_r8 get_<type> -> avio_r<type> get_buffer -> avio_read get_partial_buffer will be made private later get_strz is left out becase I want to change it later to return something useful. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: rename ByteIOContext to AVIOContext.Anton Khirnov2011-02-20
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* oggdec: Fix incorrect assumption about header/data interleavingReimar Döffinger2011-02-08
| | | | | | | | | | | | Currently (since the data_offset fix) the ogg demuxer assumes that after the first non-header packets in any stream no more header packets will follow. This is not guaranteed, so change the code back again to wait until it has finished the headers for all streams before returning from ogg_get_headers. This fixes issue 2428. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.Diego Elio Pettenò2011-01-26
| | | | | This also lists the objects from those two libraries as internal (by adding the ff_ prefix) so that they can then be hidden via linker scripts.
* Ensure that data_offset is set correctly when there are partialAaron Colwell2010-11-29
| | | | | | | data packets before the first complete one. Patch by Aaron Colwell [acolwell chromium org]. Originally committed as revision 25846 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Export metadata in the generic format. Deprecate old conversion API.Anton Khirnov2010-10-15
| | | | | | patch by Anton Khirnov anton _at_ khirnov _dot_ net Originally committed as revision 25493 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix printf format warningsEli Friedman2010-06-09
| | | | | | patch by Eli Friedman <eli dot friedman at gmail dot com> Originally committed as revision 23547 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Enable AVFMT_GENERIC_INDEX for Ogg demuxer. This avoids the manyReimar Döffinger2010-05-23
| | | | | | | seeks needed for binary search when seeking to a previously seen location. Originally committed as revision 23279 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggdec: Move warning about missing granule to the correct placeDavid Conrad2010-04-16
| | | | Originally committed as revision 22891 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggdec: Fix duration calculation if the last page in a file has no granuleDavid Conrad2010-04-16
| | | | Originally committed as revision 22890 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggdec: Remove write-only variableDavid Conrad2010-04-16
| | | | Originally committed as revision 22889 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.Jean-Daniel Dupas2010-03-31
| | | | | | Patch by Jean-Daniel Dupas, devlists shadowlab org Originally committed as revision 22744 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add VorbisComment writing to FLAC files.James Darnley2010-03-20
| | | | | | Patch by James Darnley <james darnley at gmail>. Originally committed as revision 22605 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggdec: Pass packets to header() until the stream is done with themDavid Conrad2010-03-12
| | | | | | | | This fixes some old ogm files that had the 3rd vorbis header after a data packet in another stream. This is invalid in ogg, but this change shouldn't affect the behaviour of any valid file. Originally committed as revision 22478 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggdec: Seek to keyframesDavid Conrad2010-03-11
| | | | Originally committed as revision 22463 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggdec: Determine pts and filepos on a packet basis in read_timestampDavid Conrad2010-03-11
| | | | | | | This takes into account whether the granule defines the start or end times of packets, and sets the correct file offset of the associated page. Originally committed as revision 22462 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggdec: Move PTS/DTS calculation to a functionDavid Conrad2010-03-11
| | | | Originally committed as revision 22461 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggdec: Fix duration calculation for streams with non-zero startDavid Conrad2010-03-11
| | | | Originally committed as revision 22458 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggdec: Parse skeleton to determine the start time of each streamDavid Conrad2010-03-11
| | | | Originally committed as revision 22457 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggdec: Move ogg_find_stream and ogg_gptopts to oggdec.hDavid Conrad2010-03-11
| | | | | | (skeleton will need them) Originally committed as revision 22455 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggdec: Set data_offset to the right valueDavid Conrad2010-03-11
| | | | | | | Otherwise it gets set automatically to a page midstream and prevents seeking to the first page. Originally committed as revision 22454 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggdec: Save offset of the page needed to reconstruct the current packetDavid Conrad2010-03-11
| | | | Originally committed as revision 22453 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure the header value used to avoid repeating headers on seeking to theReimar Döffinger2010-02-08
| | | | | | | start and to avoid initializing codecs with missing headers is set for all streams. Fixes issue 1723. Originally committed as revision 21693 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix playback with invalid files that don't set the continuation flag forDavid Conrad2010-02-08
| | | | | | | pages that continue packets started in prior pages. Fixes issue1248 Originally committed as revision 21688 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggdec: Set dts when knownDavid Conrad2010-01-11
| | | | Originally committed as revision 21134 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add support for dirac in oggDavid Conrad2010-01-11
| | | | Originally committed as revision 21128 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix PTS for OGM codecs.David Conrad2009-12-12
| | | | | | Fixes issue251 Originally committed as revision 20815 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Calculate correct packet durations when demuxing Ogg/Speex. This involvesJustin Ruggles2009-10-12
| | | | | | | determining if there is any delay in the first packet and/or any truncation in the final packet. Originally committed as revision 20216 to svn://svn.ffmpeg.org/ffmpeg/trunk