Anton Khirnov
23f741f793
matroskadec: parse the channel layout mask for FLAC
...
It is commonly stored in a vorbiscomment block in codec private data.
11 years ago
Michael Niedermayer
4511531582
avformat/oggparsetheora: zero extradata padding area
...
Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f66fa0ac09d_9197_theora_a4_v6_k250_s0.ogg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Anton Khirnov
ce6949d3a0
oggparsetheora: stop using deprecated avcodec_set_dimensions
11 years ago
Anton Khirnov
4f2d8968c0
oggparsetheora: check av_mallocz result
11 years ago
Anton Khirnov
5e5fb21877
oggparsetheora: return meaningful error codes
11 years ago
Anton Khirnov
d4c12b8be4
oggparsetheora: K&R cosmetics, reformat
...
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>
11 years ago
Martin Storsjö
d872fb0f7f
lavf: Reset the entry count and allocation size variables on av_reallocp 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>
11 years ago
Alexandra Khirnova
5626f994f2
avformat: Use av_reallocp() where suitable
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years ago
Giorgio Vazzana
39403c6c1b
oggparsetheora: fix comment header parsing
...
Pass the correct header size to ff_vorbis_comment()
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Giorgio Vazzana
db4bb4c983
oggparsetheora: fix comment header parsing
...
Pass the correct header size to ff_vorbis_comment()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
d9d56712e9
oggparsetheora: print error when failing on unknown header
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Luca Barbato
7751e4693d
ogg: check that the expected number of headers had been parsed
...
Not having the header for a codec is a tell-tale of a broken file.
12 years ago
Luca Barbato
0336dea2ef
oggparsetheora: make it more robust
12 years ago
Michael Niedermayer
bb146bb57b
ogg: prevent NULL pointer deference in theora gptopts
...
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>
12 years ago
Michael Niedermayer
bb7073921c
oggparsetheora: fix metadata parsing
...
Fixes Ticket1508
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
13 years ago
Michael Niedermayer
b18c9f1eb0
oggtheora: Port changes from oggvorbis timestamp handling.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
231d32c8d7
oggtheora: Fix initial pts
...
code based on the solution in vorbis
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f927c5b753
vorbisdemux: Check private context in theoras gtopts.
...
This prevents a null ptr dereference.
It could be checked differently but this way it should
be possible to return some data.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
1bb3990b56
ogg: don't set codec timebase
...
Demuxers are not supposed to set it.
13 years ago
Anton Khirnov
c3f9ebf743
lavf: make av_set_pts_info private.
...
It's supposed to be called only from (de)muxers.
13 years ago
Reimar Döffinger
a351110eea
Always use av_set_pts_info to set the stream time base.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Reimar Döffinger
5603df39df
Always use av_set_pts_info to set the stream time base.
14 years ago
Jean-Daniel Dupas
cc947f04cc
Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.
...
Patch by Jean-Daniel Dupas, devlists shadowlab org
Originally committed as revision 22744 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
b53cde48bd
oggdec: Metadata is per-stream; don't merge multiple streams' together
...
Originally committed as revision 22473 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
e4d2d8c5d7
Add ff_ prefix to vorbis_comment
...
Originally committed as revision 22472 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
8b6bdb6cf3
oggdec: Parse theora headers since ogg might not mark keyframes
...
Fixes issue746
Originally committed as revision 22214 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
2d4970d88d
oggdec: Set dts when known
...
Originally committed as revision 21134 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
11d058b7b3
Replace invalid Theora frame rate by 25 FPS.
...
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
16 years ago
David Conrad
12d7c0793b
Ensure that the extradata buffer is padded appripriately in the ogg demuxer.
...
Spotted by valgrind.
Originally committed as revision 19119 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
David Conrad
0a8dedc9e1
Use skip_bits_long() for large skips
...
This fixes ogg/theora on ARM (more generally the A32 bitstream reader)
Originally committed as revision 18819 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
9106a698e7
Rename bitstream.h to get_bits.h.
...
Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
e3b07e1a74
OGG: correct PTS with old theora streams
...
Originally committed as revision 15785 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
77be08eeb1
OGG: untypedef demuxer structs
...
Originally committed as revision 15784 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
David Conrad
a0ce2d1bbc
Cosmetics: indentation
...
Originally committed as revision 15501 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
David Conrad
277e3e534b
Visible width/height fields were added in Theora 3.2
...
Originally committed as revision 15500 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
547ea47d4f
Add ff_ prefix to ogg_codec_t structs
...
Originally committed as revision 14951 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Reimar Döffinger
cd34bc7617
Make ogg_codec_t descriptions const
...
Originally committed as revision 14948 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Aurelien Jacobs
5972945197
convert every muxer/demuxer to write/read sample_aspect_ratio from/to
...
the corresponding AVStream instead of AVCodecContext
Originally committed as revision 14933 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
245976da2a
Use full path for #includes from another directory.
...
Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Måns Rullgård
e1a794b272
set PKT_FLAG_KEY for Theora and OGM streams
...
Originally committed as revision 11002 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
a0ddef24ce
Rename ogg2.[ch] to oggdec.[ch].
...
Originally committed as revision 10943 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ronald S. Bultje
80fb82346e
Use AV_RB* macros where appropriate.
...
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
18 years ago
Aurelien Jacobs
b997b67c63
use get_bits_long() where needed
...
patch by Aurelien Jacobs, aurel gnuage org
Originally committed as revision 9314 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Aurelien Jacobs
c0f716b86f
fix display of theora videos with visible size smaller than encoded size
...
Originally committed as revision 8928 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Matthieu Castet
116d866ca5
fix playback of theora.ogg on mphq patch by (matthieu castet %% castet dat matthieu ot free dat fr %%)
...
Originally committed as revision 5776 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Måns Rullgård
3644cb8ff9
set stream time_base properly
...
Originally committed as revision 5367 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Alex Beregszaszi
571fa53105
support correct ptses on other than version 3.2.0 aswell
...
Originally committed as revision 5047 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Diego Biurrun
bb270c0896
COSMETICS: tabs --> spaces, some prettyprinting
...
Originally committed as revision 4764 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago