Michael Niedermayer
e6f27346b7
pmpdec: make i unsigned, avoid undefined behavior of i++
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a960f3b918
pmpdec: fix integer overflow
Its unlikely this affects any valid files.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
db6e2e848b
hls: do not access pb->opaque for custom IO.
As the name indicates we can't just assume what the
"opaque" field contains.
This fixes a crash in third-party applications see e.g.:
http://bugzilla.mplayerhq.hu/show_bug.cgi?id=2126
This fixes also FFmpeg trac #2293, which is a different
third-party application.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Nicolas George
ea2de3d096
lavf/concatdec: add the "duration" directive.
13 years ago
Nicolas George
b92c7a8f4b
tools: add seek_print.
Useful for testing seek implementations.
13 years ago
Nicolas George
3d7f4f8726
lavf/avio: check that the protocol supports the open mode.
Fix trac ticket #2139 .
13 years ago
Michael Niedermayer
066739f6bc
pmpdec: check packet sizes
Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
7276e9ea95
pmpdec: fix signedness
Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b0bc0eb978
pmpdec: read index before creating audio streams
This allows more complete checks
Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
50a37f9202
pmpdec: check for EOF while reading index.
Otherwise even a tiny file can trigger a huge memory allocation.
Related to ticket #2298 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Michael Niedermayer
82d79289db
avformat: Allocate duration_error separately
This significantly reduces the memory needed per AVStream when the
array is not needed.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
285485ac5f
matroskaenc: fix cue tracknum off by 1 error
Fixes out of array accesses
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
da8ef5ac2f
rtmpproto: increase APP_MAX_LENGTH
Fixes second part of Ticket2292
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
02ac3398eb
rtmpproto: Check APP_MAX_LENGTH
Fixes Ticket2292
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
56daf10e03
mov: use the format context for logging.
CC:libav-stable@libav.org
13 years ago
Paul B Mahol
c46400ddec
cafenc: do not leak caf->pkt_sizes
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
a72b41035c
mxg: do not leak mxg->buffer
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Andrea3000
8d8c59480e
matroska: fix missing ,
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
d714576037
Use SMPTE standard notation when showing mxf Universal Labels.
13 years ago
Clément Bœsch
7346354b55
lavf/microdvd: fix muxing.
This was broken since 1f265f52 .
13 years ago
Clément Bœsch
580e228557
lavf/swfdec: remove 8-bit audio FIXME.
Implemented since 624fb5f9 .
13 years ago
Clément Bœsch
624fb5f965
lavf/swfdec: support 8-bits PCM audio.
13 years ago
Clément Bœsch
9a0076f50c
lavf/swfdec: factorize the creation of a new stream.
This also makes the changes of a3949fe11 applicable in both cases.
13 years ago
Michael Niedermayer
2ccaab9709
mov: fix self referencing timecode tracks
Fixes read after free.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
271f411267
lavf/matroskaenc: avoid assert failure in case of cuepoints with duplicated PTS
Avoid to write more than one cuepoint per track and PTS in
mkv_write_cues(). This avoids a later assertion failure on "(bytes >=
needed_bytes)" in put_ebml_num() called from end_ebml_master(), in case
there are several cuepoints per track with the same PTS.
This may happen with files containing packets with duplicated PTS in the
same track.
13 years ago
Michael Niedermayer
e39821a65e
nutenc: only write an index if there are syncpoints
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
6cd650dbd2
ff_gen_search: Fix finding the maximum timestamp in a really small file
Fixes Assertion failure
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
695a766bff
ff_read_timestamp: check stream_index before using it as array index
Fixes out of array read
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
8d0757e107
Revert "swfenc: use av_get_audio_frame_duration() instead of AVCodecContext.frame_size"
This reverts commit 620b88a302 .
Fixes ticket #2272 .
Conflicts:
libavformat/swfenc.c
13 years ago
Michael Niedermayer
4a6fa7963b
lavf: dont try to find fps for attached pictures
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
rogerdpack
12c71f648c
dshow: Fix MSVC support, remove av_export, which was apparently unneeded anyway.
Also cleanup exported symbols
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Vignesh Venkatasubramanian
003be0a9c3
Removing network.h from matroskadec.c
Removing accidentally added include file.
Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
d5ce725cb3
Fix a few "its" vs "it's" typo.
13 years ago
Vignesh Venkatasubramanian
ce6a8e5947
Adding AlphaMode element to Matroska Parser
Adding support for parsing AlphaMode element in the Track header
and export that information as a metadata tag. This flag indicates
presence of alpha channel data in BlockAdditional element.
Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
405cc0d905
movenc: hotfix, dont store fiel for h264 / mpeg4-asp / dnxhd
Other software does not store it in this case, and the information
is provided by the codec stream
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
7d0e3b197c
Write the fiel atom to mov files independently of the used video coded.
The QuickTime specification does not contain any hint that the atom
must not be written in some cases and both the QuickTime and the
AVID decoders do not fail if the atom is present.
This change allows to signal (visually) interlaced streams with
a codec different from uncompressed video.
As a side-effect, this fixes ticket #2202
13 years ago
Michael Niedermayer
a08ebf04b1
matroskadec: simplify additional_id writing code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Vignesh Venkatasubramanian
30c5c45b12
Adding support for parsing BlockAdditional
Matroska specification lists support for BlockAdditional element
which is not supported by ffmpeg's matroska parser. This patch
adds grammar definitions for parsing that element (and few other
related elements) and then puts the data in AVPacket.side_data
with new AVPacketSideDataType AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL.
Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Daniel Verkamp
5dd78ef34e
WAV muxer: reindent
13 years ago
Nicolas George
b68dd8a161
lavf/concatdec: allow probing.
13 years ago
Nicolas George
db9dc5154d
lavf/concatdec: add signature directive.
13 years ago
Nicolas George
6d680d20ad
lavf/concatdec: add safe option.
13 years ago
Daniel Verkamp
1ecce266fa
WAV muxer: add RF64 support
13 years ago
Carl Eugen Hoyos
182e342fdb
Print mxf Universal Label if the user requested verbose logging.
Fixes ticket #2198
13 years ago
Stefano Sabatini
6b171f046c
lavf/matroskaenc: provide more feedback in case of unsupported codec
Also return meaningful error code.
13 years ago
Michael Niedermayer
ea1d8465e6
Fix division by 0 due to audio frame size
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
f02f231e05
Do not write invalid matroska files.
Some real codecs are supported by the matroska specification
(and FFmpeg's matroska demuxer) but not the FFmpeg muxer.
13 years ago
Nicolas George
f43d09cd60
lavf: add tee pseudo-muxer.
13 years ago
Vladimir Pantelic
f5fac6f777
asfdec: support reading ID3v2 tags in ASF files
Yes, these files do exist
Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Vladimir Pantelic
84b721db36
asfdec: also read Metadata Library Object
In some ASF files this objects holds cover art and other tags. Compared to
Metadata Object it can also hold GUIDs, but we ignore these for now.
Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago