summaryrefslogtreecommitdiffstats
path: root/libavformat/oggdec.c
Commit message (Collapse)AuthorAgeFilesLines
* oggdec: add support for Opus in Ogg demuxingNicolas George2013-10-121-0/+1
|
* avformat: Use av_reallocp_array() where suitableAlexandra Khirnova2013-09-101-10/+6
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* ogg: Fix potential infinite discard loopReimar Döffinger2013-08-191-1/+5
| | | | | | | | | | | | Seeking in certain broken files would cause ogg_read_timestamp to fail because ogg_packet would go into a state where all packets of stream 1 would be discarded until the end of the stream. Bug-Id: 553 CC: libav-stable@libav.org Signed-off-by: Jan Gerber <j@v2v.cc> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* oggdec: do not fall back on binary search in the generic code.Anton Khirnov2013-07-021-1/+1
| | | | | Binary search is already attempted in the format-specific seek function, so the fallback is only reached if binary search failed already.
* ogg: relax demuxer conformance checksLuca Barbato2013-06-221-2/+5
| | | | | Some samples in the wild are missing headers that are expected by the specification but in practice do not affect decoding.
* oggdec: make sure the private parse data is cleaned upLuca Barbato2013-01-061-0/+4
|
* oggdec: free the ogg streams on read_header failureLuca Barbato2013-01-061-14/+16
| | | | Plug an annoying memory leak on broken files.
* oggdec: check memory allocationLuca Barbato2012-12-231-2/+9
|
* oggdec: K&R cosmetic formattingLuca Barbato2012-12-231-117/+128
|
* ogg: calculate the start position once all the headers are parsedLuca Barbato2012-09-241-0/+4
| | | | | The fisbone packets can be muxed in any order as long the last one comes before the first data packet.
* ogg: check that the expected number of headers had been parsedLuca Barbato2012-09-241-1/+12
| | | | Not having the header for a codec is a tell-tale of a broken file.
* Fix uninitialized reads on malformed ogg files.Dale Curtis2012-03-081-5/+5
| | | | | | | | | | The ogg decoder wasn't padding the input buffer with the appropriate FF_INPUT_BUFFER_PADDING_SIZE bytes. Which led to uninitialized reads in various pieces of parsing code when they thought they had more data than they actually did. Signed-off-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavf: remove AVFormatParameters from AVFormatContext.read_header signatureAnton Khirnov2012-01-271-1/+1
|
* misc Doxygen markup improvementsDiego Biurrun2011-12-051-3/+2
|
* lavf: make av_set_pts_info private.Anton Khirnov2011-11-301-1/+1
| | | | It's supposed to be called only from (de)muxers.
* lavf: make some seeking functions privateAnton Khirnov2011-10-281-1/+2
| | | | | | | Specifically av_update_cur_dts(), av_seek_frame_binary() and av_gen_search(). They are not supposed to be called outside lavf.
* lavf: replace av_new_stream->avformat_new_stream part II.Anton Khirnov2011-10-191-1/+2
| | | | | | | | Manual replacements are done in this commit. In many cases, the id is some constant made up number (e.g. 0 for video and 1 for audio), which is then not used in the demuxer for anything. Those ids are removed.
* oggdec: add support for Xiph's CELT codecNicolas George2011-09-261-0/+1
| | | | | | | This patch also introduces CODEC_ID_CELT. Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* oggdec: fix out of bound write in the ogg demuxerLaurent Aimar2011-09-171-2/+12
| | | | | | | Between ogg_save() and ogg_restore() calls, the number of streams could have been reduced. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* oggdec: prevent heap corruption.Chris Evans2011-07-111-2/+3
| | | | | | | | 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-041-25/+34
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* oggdec: Abort Ogg header parsing when encountering a data packet.Reimar Döffinger2011-07-041-4/+1
| | | | | | 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-291-1/+2
| | | | | | | | 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-021-6/+4
|
* Remove unused variablesMans Rullgard2011-06-021-4/+1
|
* Cosmetics: fix prototypes in oggdecClément Bœsch2011-05-121-33/+18
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* oggdec: fix memleak with continuous streams.Clément Bœsch2011-05-121-6/+10
| | | | | | | 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-121-11/+11
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* oggdec: simplify ogg_probeClément Bœsch2011-05-121-5/+2
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Replace some commented-out debug printf() / av_log() messages with av_dlog().Diego Biurrun2011-04-291-12/+4
|
* oggdec: reindent after 8f3eebd6Clément Bœsch2011-04-241-7/+7
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* oggdec: use av_freep() instead of av_free()Michael Niedermayer2011-04-201-2/+2
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* oggdec: simplify audio chained ogg streams supportClément Bœsch2011-04-151-7/+1
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* oggdec: fix demuxing chained audio streamsClément Bœsch2011-04-101-0/+16
| | | | | | | | | 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-031-1/+1
| | | | Use it instead of url_is_streamed and AVIOContext.is_streamed.
* avio: deprecate url_feofAnton Khirnov2011-03-071-1/+1
| | | | | | 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-071-1/+1
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: deprecate url_fgetc and remove all it usesAnton Khirnov2011-03-071-5/+5
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: add avio_tell macro as a replacement for url_ftellAnton Khirnov2011-03-041-3/+3
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefix for url_fseekAnton Khirnov2011-03-011-3/+3
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefixes for get_* functionsAnton Khirnov2011-02-211-7/+7
| | | | | | | | | | | | | | 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-201-3/+3
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* oggdec: Fix incorrect assumption about header/data interleavingReimar Döffinger2011-02-081-7/+7
| | | | | | | | | | | | 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-261-1/+1
| | | | | 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-291-2/+20
| | | | | | | 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-151-1/+0
| | | | | | 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-091-1/+1
| | | | | | 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-231-0/+1
| | | | | | | 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-161-2/+4
| | | | 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-161-10/+7
| | | | Originally committed as revision 22890 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud