summaryrefslogtreecommitdiffstats
path: root/libavformat/oggparsetheora.c
Commit message (Collapse)AuthorAgeFilesLines
* lavc: Consistently prefix input buffer definesVittorio Giovara2015-07-271-1/+1
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* ogg: update event_flags with STREAM_/METADATA_UPDATED whenever metadata changes.Andrew Stone2014-08-131-1/+1
| | | | | | | | | | | | | | Originally, AVFormatContext and a metadata dict were provided to ff_vorbis_comment(), but this presented issues if an AVStream was being updated or the metadata on AVFormatContext wasn't actually being updated. To remedy this, ff_vorbis_stream_comment() explicitly updates a stream's metadata and sets any necessary flags. ff_vorbis_comment() does not modify any flags, and any calls to it that update AVFormatContext's metadata (just a single call) must also update AVFormatContext.event_flags after detecting any metadata changes to the provided dictionary, as signaled by a positive return value. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* matroskadec: parse the channel layout mask for FLACAnton Khirnov2014-05-281-1/+1
| | | | It is commonly stored in a vorbiscomment block in codec private data.
* oggparsetheora: stop using deprecated avcodec_set_dimensionsAnton Khirnov2013-10-311-8/+8
|
* oggparsetheora: check av_mallocz resultAnton Khirnov2013-10-301-0/+2
|
* oggparsetheora: return meaningful error codesAnton Khirnov2013-10-301-3/+3
|
* oggparsetheora: K&R cosmetics, reformatAnton Khirnov2013-10-301-53/+53
| | | | | | | | Also typedef the private data struct and make its name consistent with the rest of Libav. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: Reset the entry count and allocation size variables on av_reallocp ↵Martin Storsjö2013-09-261-1/+3
| | | | | | | | | | | | | | failures When av_reallocp fails, the associated variables that keep track of the number of elements in the array (and in some cases, the separate number of allocated elements) need to be reset. Not all of these might technically be needed, but it's better to reset them if in doubt, to make sure variables don't end up conflicting. Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat: Use av_reallocp() where suitableAlexandra Khirnova2013-09-181-3/+4
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* oggparsetheora: fix comment header parsingGiorgio Vazzana2013-01-141-1/+1
| | | | | | Pass the correct header size to ff_vorbis_comment() Signed-off-by: Martin Storsjö <martin@martin.st>
* oggparsetheora: make it more robustLuca Barbato2012-09-241-3/+12
|
* ogg: prevent NULL pointer deference in theora gptoptsMichael Niedermayer2012-09-241-2/+7
| | | | | | | | Additional safety in case a special ogg stream is crafted with the proper number of Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ogg: check that the expected number of headers had been parsedLuca Barbato2012-09-241-1/+2
| | | | Not having the header for a codec is a tell-tale of a broken file.
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-1/+1
|
* ogg: don't set codec timebaseAnton Khirnov2012-03-021-6/+7
| | | | Demuxers are not supposed to set it.
* lavf: make av_set_pts_info private.Anton Khirnov2011-11-301-1/+2
| | | | It's supposed to be called only from (de)muxers.
* Always use av_set_pts_info to set the stream time base.Reimar Döffinger2011-02-061-1/+1
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.Jean-Daniel Dupas2010-03-311-1/+1
| | | | | | 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-301-1/+1
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggdec: Metadata is per-stream; don't merge multiple streams' togetherDavid Conrad2010-03-121-1/+1
| | | | Originally committed as revision 22473 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add ff_ prefix to vorbis_commentDavid Conrad2010-03-121-1/+1
| | | | Originally committed as revision 22472 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggdec: Parse theora headers since ogg might not mark keyframesDavid Conrad2010-03-051-0/+1
| | | | | | Fixes issue746 Originally committed as revision 22214 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggdec: Set dts when knownDavid Conrad2010-01-111-1/+4
| | | | Originally committed as revision 21134 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace invalid Theora frame rate by 25 FPS.Reimar Döffinger2009-07-031-0/+5
| | | | | | Avoids division by 0 due to e.g. time_base denominator being 0. Originally committed as revision 19334 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Ensure that the extradata buffer is padded appripriately in the ogg demuxer.David Conrad2009-06-051-1/+2
| | | | | | Spotted by valgrind. Originally committed as revision 19119 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use skip_bits_long() for large skipsDavid Conrad2009-05-141-2/+2
| | | | | | This fixes ogg/theora on ARM (more generally the A32 bitstream reader) Originally committed as revision 18819 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename bitstream.h to get_bits.h.Stefano Sabatini2009-04-131-1/+1
| | | | Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* OGG: correct PTS with old theora streamsMåns Rullgård2008-11-061-8/+11
| | | | Originally committed as revision 15785 to svn://svn.ffmpeg.org/ffmpeg/trunk
* OGG: untypedef demuxer structsMåns Rullgård2008-11-061-9/+9
| | | | Originally committed as revision 15784 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: indentationDavid Conrad2008-10-011-5/+5
| | | | Originally committed as revision 15501 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Visible width/height fields were added in Theora 3.2David Conrad2008-10-011-1/+2
| | | | Originally committed as revision 15500 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add ff_ prefix to ogg_codec_t structsReimar Döffinger2008-08-241-1/+1
| | | | Originally committed as revision 14951 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make ogg_codec_t descriptions constReimar Döffinger2008-08-241-1/+1
| | | | Originally committed as revision 14948 to svn://svn.ffmpeg.org/ffmpeg/trunk
* convert every muxer/demuxer to write/read sample_aspect_ratio from/toAurelien Jacobs2008-08-231-2/+2
| | | | | | the corresponding AVStream instead of AVCodecContext Originally committed as revision 14933 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full path for #includes from another directory.Diego Biurrun2008-05-091-2/+2
| | | | Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* set PKT_FLAG_KEY for Theora and OGM streamsMåns Rullgård2007-11-111-0/+3
| | | | Originally committed as revision 11002 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename ogg2.[ch] to oggdec.[ch].Diego Biurrun2007-11-071-1/+1
| | | | Originally committed as revision 10943 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use AV_RB* macros where appropriate.Ronald S. Bultje2007-07-061-4/+1
| | | | | | | | patch by Ronald S. Bultje, rsbultje gmail com thread: Re: [FFmpeg-devel] remove int readers date: Sat, 23 Jun 2007 09:32:12 -0400 Originally committed as revision 9499 to svn://svn.ffmpeg.org/ffmpeg/trunk
* use get_bits_long() where neededAurelien Jacobs2007-06-141-4/+4
| | | | | | patch by Aurelien Jacobs, aurel gnuage org Originally committed as revision 9314 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix display of theora videos with visible size smaller than encoded sizeAurelien Jacobs2007-05-071-5/+14
| | | | Originally committed as revision 8928 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix playback of theora.ogg on mphq patch by (matthieu castet %% castet dat ↵Matthieu Castet2006-07-171-1/+1
| | | | | | matthieu ot free dat fr %%) Originally committed as revision 5776 to svn://svn.ffmpeg.org/ffmpeg/trunk
* set stream time_base properlyMåns Rullgård2006-05-121-3/+2
| | | | Originally committed as revision 5367 to svn://svn.ffmpeg.org/ffmpeg/trunk
* support correct ptses on other than version 3.2.0 aswellAlex Beregszaszi2006-02-221-7/+22
| | | | Originally committed as revision 5047 to svn://svn.ffmpeg.org/ffmpeg/trunk
* COSMETICS: tabs --> spaces, some prettyprintingDiego Biurrun2005-12-221-3/+3
| | | | Originally committed as revision 4764 to svn://svn.ffmpeg.org/ffmpeg/trunk
* COSMETICS: Remove all trailing whitespace.Diego Biurrun2005-12-171-1/+1
| | | | Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
* changing AVCodecContext codec -> *codec in AVStream so additions to ↵Michael Niedermayer2005-07-171-14/+14
| | | | | | AVCodecContext dont randomize AVStream and break binary compatibility Originally committed as revision 4453 to svn://svn.ffmpeg.org/ffmpeg/trunk
* check theora versionMåns Rullgård2005-05-121-5/+8
| | | | Originally committed as revision 4229 to svn://svn.ffmpeg.org/ffmpeg/trunk
* support theora in ogg, plus required ogg core changesMåns Rullgård2005-05-111-0/+112
Originally committed as revision 4217 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud