Clément Bœsch
7bc70930dd
lavf/movenc: add F4V flavor.
12 years ago
Anton Khirnov
87b017a298
matroskadec: fix a sanity check.
12 years ago
Anton Khirnov
bdb939ad73
matroskadec: only return corrupt packets that actually contain data
...
Fixes bug 372.
12 years ago
Anton Khirnov
1cc569ddda
lavf: zero data/size of the packet passed to read_packet().
12 years ago
Michael Niedermayer
fb96ac469a
nutdec: fix mixup of nb_streams and timebase_count
...
Fixes out of array read, should fix ffprove fate failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
6ab1166c77
nutdec: fix type of intermediate variable for ts calculation.
...
Prior to this it could theoretically become negative and read
out of array.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
a6ec1e49f6
matroskadec: matroska_parse_rm_audio: remove unused parameter
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
6d87781758
mp3dec: fix seeking without xing TOC
...
fixes regression from the xing toc support
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
0da50055eb
matroskadec: fix typo
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Janne Grunau
6746cd7f61
lavf probe: prevent codec probe with no data at all seen
...
This occurs with fuzzed mpeg-ts files. set_codec_from_probe_data() is
called with a zeroed AVProbeData since no packet made through for
specific stream.
12 years ago
Michael Niedermayer
db0087dc1d
mxfdec: fix index_tables check in mxf_read_seek()
...
Approved-by: Tjoppen
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Matthieu Bouron
d57ca5e5a8
mxfenc: support 23.976 and 24 frame rates
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Matthieu Bouron
906a263813
mxfenc: factorize samples per frame code
...
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
168bc5f2c5
mov: fix 32/64 format type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
50d1f4437b
mp3dec: read Xing frame TOC index
12 years ago
Anton Khirnov
2d1a1a7f62
mp3dec: use named constants for Xing header flags
12 years ago
Yusuke Nakamura
d17d0ec8c2
mov: support random access point grouping
...
Frames described by this grouping are the starter of a closed or
an open GOP.
This is useful for open GOP of H.264 stream which is not described
by sync sample atom.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Luca Barbato
c831ebf616
matroskadec: split frame parsing
12 years ago
Luca Barbato
117d8c6d1f
matroska: implement support for ProRes
...
Support Matroska native formatting.
On demuxing prepend a Frame container atom (32bit big endian encoded
frame size and 'icpf' string).
On muxing remove it.
12 years ago
Luca Barbato
870e75524a
matroskadec: validate lace_size when parsed
...
Stricter validation, explicitly exit on misparsing and some error
forwarding from the ebml parsing functions used.
12 years ago
Luca Barbato
c9a39cec70
matroskadec: return meaningful errors in matroska_decode_buffer
12 years ago
Luca Barbato
8d4dd55c37
matroskadec: refactor matroska_decode_buffer
...
Make MATROSKA_TRACK_ENCODING_COMP_HEADERSTRIP behave like
the other encodings and spare few lines of boilerplate code.
12 years ago
Luca Barbato
7d8431004a
matroskadec: properly support BlockDuration
12 years ago
Luca Barbato
2d0e7713f9
matroskadec: split laces parsing
12 years ago
Moritz Bunkus
8071dca3d5
matroska: implement support for ALAC
...
Support Matroska native formatting.
On demuxing reconstruct the 36-bytes QuickTime atom that the ALAC
decoder expects by prepending the "atom size", "tag" and
"tag version" fields missing from the Matroska's CodecPrivate
element.
On muxing remove the initial 12 bytes
Sample files are available:
http://www.bunkus.org/videotools/mkvtoolnix/samples/alac/alac-in-matroska.mka
and the CoreAudio file it was created from with today's mkvmerge:
http://www.bunkus.org/videotools/mkvtoolnix/samples/alac/alac-in-matroska-source.caf
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Dale Curtis
df1d84121b
matroskadec: fix incorrect unsigned->signed conversion
12 years ago
Luca Barbato
581281e242
matroskadec: check realloc in lzo encoding
...
Make all the compression encodings behave the same way.
12 years ago
Luca Barbato
cd4739c4f2
matroska: honor error_recognition on unknown doctypes
12 years ago
Michael Niedermayer
8d07742cb1
avidec: workaround aac with broken block align
...
Fixes Ticket1742
Based on patch by: Nikola Vranic <nikola.vranic@rt-rk.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
84cc314e40
smoothstreaming: Export the mp4 codec tags
...
This fixes stream copy from a format that already has incompatible
codec tags set. The chained ismv muxer exports this same codec tag
list, so set it on this one as well, to allow the caller (and
lavf common code) to set them correctly.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Luca Barbato
9888ffb1ce
mov: check for EOF in long lasting loops
...
A quite widespread pattern in the demuxer is read a 32bit unsigned
integer and then loop till this value is reached.
Checking for EOF prevents pathological situations.
12 years ago
Benjamin Larsson
6a08955c10
flvenc: silence bogus warning
...
The compiler fails to figure out that enc->codec_type can only
have 3 different values.
Thus when an if/else is encountered it triggers on the possibility
of the else case has not initialized the flags variable.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Michael Niedermayer
a1fb2b935a
nsvdec: change 2 commented assert() to av_assert()
...
they keep showing up if i grep for non av assert()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Reimar Döffinger
07d2d06395
Remove code that duplicates existing code a few lines down.
...
This also fixes a potential crash since s->pb can be NULL.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years ago
Clément Bœsch
049ce4facb
id3v2: strdup the genre name explicitly.
...
It would have been done anyway in the av_dict_set() call.
This simplifies the code and avoid a warning because of assigning a
const string from ff_id3v1_genre_str to a non-const variable.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago
Clément Bœsch
ffdd2e9144
lavf/id3v2: do not export empty fields.
...
This also avoids a memleak.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago
Clément Bœsch
094991eb69
lavf/oggdec: reword stream creation error message.
12 years ago
Clément Bœsch
23f6420026
lavf/oggdec: reindent and comment blocks.
12 years ago
Clément Bœsch
a218c5ebd2
lavf/oggdec: make stream replacement less convoluted.
...
Also re-use the allocated buffer instead of re-allocating a new one.
12 years ago
Clément Bœsch
e18ea76523
lavf/oggdec: more explicit zeroing of the new ogg stream.
12 years ago
Clément Bœsch
3a89553347
lavf/oggdec: rework allocations in ogg_new_streams().
12 years ago
Michael Niedermayer
a5ea623b36
mov: stsd entries must be at least 16 byte
...
Fix near infinite loop in stsd parsing.
Bug found by: Diana Elena Muscalu
The size is unsigned according the specification.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Clément Bœsch
edca80387c
lavf/oggdec: simplify destroying streams with chained audio streams.
...
nstreams is assumed to be 1 at that point, so the loop is pointless.
12 years ago
Clément Bœsch
277ddf127d
lavf/oggdec: rename str to sid.
...
"str" is misleading here (it's often used for string). "sid" makes more
sense to identify a stream id.
12 years ago
Clément Bœsch
e1ca1dd71b
lavf/oggdec: remove a comment not matching anything.
12 years ago
Clément Bœsch
bf8bfc6a11
lavf/oggdec: inline ogg_get_headers().
...
There is no point in a distant definition of a small function like this
used only once.
Additional spacing to distinguish better the block.
12 years ago
Michael Niedermayer
9db67bedf0
mov: detect EOF in mov_read_dref()
...
Avoid a near infinite loop.
Issue discovered by cosminamironesei.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Luca Barbato
4ed5ac50d3
file: return proper error on seek failures
12 years ago
Michael Niedermayer
744e4429cf
mp3enc: merge mp2/mp3_write_trailer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
197bbcf44c
mp3enc: move mp3_update_xing() down
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago