Luca Barbato
f5fbbbc022
mxf: Drop unnecessary checks
av_reallocp_array does the check already.
11 years ago
Marton Balint
aa0cb16c15
mxf: Fix off by one error in d10 aes3 decoding
Without this fix the last sample was missing from the packet.
13 years ago
Luca Barbato
42f9132218
mxf: Do not use int to check the seek position
Overly large files are to be expected.
Reported-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years ago
Reimar Döffinger
d84bd4650b
mxf: Set AV_FIELD_PROGRESSIVE
Needed for AVC-intra
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Anton Khirnov
2115a35974
lavf: make av_probe_input_buffer more robust
Always use the actually read size as the offset instead of making
possibly invalid assumptions.
Addresses: CVE-2012-6618
11 years ago
Anton Khirnov
8b76362836
lavf: use a fixed width type
It's shorter and more consistent with the rest of the code.
11 years ago
Anton Khirnov
c1868e7ee7
lavf: simplify handling of offset in av_probe_input_buuffer()
11 years ago
Benjamin Larsson
547f834537
flv: Workaround for buggy Omnia A/XE encoder
The Omnia A/XE encoder writes the explicit extra data incorrectly
and wrongly disables parametric stereo. Truncating the extra data
by setting the size to 2 works around this. The AAC extra data
parser will then only parse the correct parts.
Bug-id: 599
11 years ago
Justin Ruggles
aa69cbc9e0
flac muxer: add option to disable writing the global header
The global header is not explicitly required for playback, and
omitting it allows for simple concatenation.
11 years ago
Maxim Polijakowski
e6f0bb6527
ATRAC3+ decoder
Cleanup by Diego Biurrun.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
11 years ago
Diego Biurrun
9997cee04d
network.h: Add #endif comments to improve readability
11 years ago
Anton Khirnov
6892d145a0
segafilm: fix leaks if reading the header fails
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
11 years ago
Anton Khirnov
3867f3718b
lavf: remove a pointless check
AVStream.codec is always non-NULL
11 years ago
Anton Khirnov
75647dea6f
oggparseogm: check timing variables
Fixes a potential divide by zero.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
11 years ago
Martin Storsjö
82b9799bb2
sdp: Check that fmt->oformat is non-null before accessing it
This avoids crashes when avserver tries to create an SDP, since
d77f4af
.
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Anton Khirnov
1b5d065ca7
pmpdec: check that there is at least one audio packet.
The code cannot handle there being none, but that should not happen for
valid files.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
11 years ago
Diego Biurrun
b83d1ee3b4
avutil: Move library version related macros to version.h
This is a more sensible place for these macros.
11 years ago
Luca Barbato
1716b4c7b8
mms: Remove non-utf8 characters
Certain softwares get badly confused.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years ago
Justin Ruggles
be7c323176
Add a libwebp encoder
11 years ago
Luca Barbato
f412b2c9f3
flv: Use the correct type to hold the file offset
11 years ago
Luca Barbato
15739a9bd1
jvdec: Do not feed the decoder with known wrong data
Still assume the size value is right in non-explode mode.
11 years ago
Paul B Mahol
e518cb863e
jvdec: Fix memory leak of jv->frames
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Luca Barbato
027712e851
jvdec: Return EOF on end of file
11 years ago
Michael Niedermayer
9aba0a6f7b
rtpdec_h264: Check the return value of functions doing allocations
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Martin Storsjö
6451c8853a
sdp: Check theora colorspace before producing the configuration string
This avoids a memory leak (or having to worry about freeing the
config string) if the colorspace isn't accepted.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Michael Niedermayer
797f2a7913
hdsenc: Check the init_file() return code
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Michael Niedermayer
b8ed15d637
hdsenc: Fix an off by one error in an array size check
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Michael Niedermayer
417927af3c
hdsenc: Avoid integer overflow
Also remove a silly leftover pair of parentheses.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Carl Eugen Hoyos
9fa75be96d
mpegts: add HEVC registration descriptor
11 years ago
Martin Lambers
ae9d13f03e
img2: add stereo 3d still picture file extensions
11 years ago
Vittorio Giovara
46c0cbd5dc
rtsp: suppress a incompatible pointer types warning
11 years ago
Rumin Sam
70e981cf5d
rtspdec: Fix keep-alive request for ACTi cameras
Some ACTi cameras fail if "*" is passed as the URI.
Signed-off-by: Ismael Luceno <ismael.luceno@corp.bluecherry.net>
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Anton Khirnov
281a40e18f
lavf: remove an unneeded call to avcodec_get_frame_defaults().
avcodec_decode_*() resets the frame itself.
11 years ago
Anton Khirnov
eb891b3114
Replace all uses of avcodec_free_frame with av_frame_free().
11 years ago
Diego Biurrun
d64341e498
configure: Prefix libc-related variables with "libc_"
Simplifies host/target libc detection splitting.
11 years ago
d s
f0b234ab9e
avformat: AviSynth demuxer rewrite
Directly loads AviSynth through LoadLibrary instead of relying on
Video for Windows, and supports using AvxSynth (via dlopen) to
open scripts on Linux and OS X.
Error messages from AviSynth/AvxSynth are now reported through
av_log and exit, rather than the traditional behavior of generating
an error video that the user would need to watch to diagnose.
The main rewrite was authored by d s <avxsynth.testing@gmail.com>
from the AvxSynth team, with additional contributions by
Oka Motofumi <chikuzen.mo@gmail.com>
Stephen Hutchinson <qyot27@gmail.com>
Diego Biurrun <diego@biurrun.de>
Anton Khirnov <anton@khirnov.net>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Anton Khirnov
95fd52c11b
mxfdec: set extradata size
The line setting it was mistakenly removed in
ecf442a58b
11 years ago
Kostya Shishkov
a16577d985
MSN Audio support
This is essentially a MS GSM decoder extension that supports more
sampling rates and lower bitrates.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Diego Biurrun
ab81f24ad4
build: Integrate multilibrary examples into the build system
This includes moving libavformat/output-example to doc/examples/output.
11 years ago
Diego Biurrun
8f8bc92365
Add missing #includes for *INT64_MAX and *INT64_C
11 years ago
Martin Storsjö
56c2337004
hls: Avoid reading outside of the allocated array
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Martin Storsjö
8c92909814
hls: Check whether the AVIOContext contains a new redirected URL
This allows both the main playlist itself as well as the variant
playlists to handle redirects combined with relative URLs.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Martin Storsjö
be4edda673
http: Expose the content location via an AVOption
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Zhang Rui
393d80cc27
http: Support relative URL redirection
In RFC 2616, this was explicitly said to be an absolute URL,
while in an upcoming draft [1] it is allowed to be relative as well.
[1] http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-25#section-7.1.2
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
76267ecc82
http: Remove an unrelated and mistakenly set AVOption unit name
This was due to a copypaste oversight.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Anton Khirnov
ce9bba5340
avidec: fix a memleak in the dv init code.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
11 years ago
Aurelien Jacobs
8b516f154a
matroskadec: use correct compression parameters for current track CodecPrivate
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Anton Khirnov
30be1ea33e
matroskadec: pad EBML_BIN data.
It might be passed to code requiring padding, such as lzo decompression.
Fixes invalid reads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
11 years ago
Valeriy Argunov
cc20fbcd39
rtmphttp: Check for both 0 and AVERROR_EOF
This makes RTMPT work again - it was broken by 5d876be87a
.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Anton Khirnov
5b9c3b4505
Replace all instances of avcodec_alloc_frame() with av_frame_alloc().
11 years ago