Anton Khirnov
493a86e25b
FATE: remove a bunch of useless -vsync 0
...
No changes in the test results.
13 years ago
Paul B Mahol
42459c6abb
cdxl: bit line plane arrangement support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Paul B Mahol
cf6914e27f
cdxl: remove early check for bpp
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Paul B Mahol
126daeb550
cdxl: set pix_fmt PAL8 only if palette is available
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Tim Walker
0a9efe4c6e
mlp_parser: fix the channel mask value used for the top surround channel
...
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Justin Ruggles
be8d812c96
vorbisenc: check all allocations for failure
13 years ago
Justin Ruggles
f7a2e12f2a
roqaudioenc: return AVERROR codes instead of -1
13 years ago
Justin Ruggles
3fa9a999c1
roqaudioenc: set correct bit rate
13 years ago
Justin Ruggles
cf57c78b77
roqaudioenc: use AVCodecContext.frame_size correctly.
...
It is not allowed to change mid-stream like it does currently. Instead we need
to buffer the first 8 frames before returning them as a single packet, then
only return single frame packets after that.
13 years ago
Justin Ruggles
56279f1d61
roqaudioenc: remove unneeded sample_fmt check
13 years ago
Justin Ruggles
4b7f8838e8
ra144enc: use int16_t* for input samples rather than void*
13 years ago
Justin Ruggles
03359ebcf9
ra144enc: set AVCodecContext.coded_frame
13 years ago
Justin Ruggles
a65f7c96fc
ra144enc: remove unneeded sample_fmt check
13 years ago
Justin Ruggles
928672f1f1
nellymoserenc: set AVCodecContext.coded_frame
13 years ago
Justin Ruggles
370b44cda2
nellymoserenc: improve error checking in encode_init()
13 years ago
Justin Ruggles
333506c33f
nellymoserenc: return AVERROR codes instead of -1
13 years ago
Justin Ruggles
6f600ab354
libvorbis: improve error checking in oggvorbis_encode_init()
13 years ago
Justin Ruggles
be60eec668
mpegaudioenc: return AVERROR codes instead of -1
13 years ago
Justin Ruggles
7a8cbb39f6
libfaac: improve error checking and handling in Faac_encode_init()
13 years ago
Justin Ruggles
c9bca80132
avutil: add AVERROR_UNKNOWN
...
Useful to return instead of -1 when the cause of the error is unknown,
typically from an external library.
13 years ago
Justin Ruggles
a8bdf2405c
check for coded_frame allocation failure in several audio encoders
13 years ago
Justin Ruggles
255ad8881d
audio encoders: do not set coded_frame->key_frame.
...
it is already set in avcodec_alloc_frame()
13 years ago
Justin Ruggles
8e2555d3b1
g722enc: check for trellis data allocation error
13 years ago
Justin Ruggles
ca300d938b
libspeexenc: export encoder delay through AVCodecContext.delay
13 years ago
Justin Ruggles
7600e5c5aa
avcodec: document the use of AVCodecContext.delay for audio encoders
13 years ago
Ronald S. Bultje
6c4c27adb6
kgv1: release reference picture on size change.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Ronald S. Bultje
cd40c31ee9
matroska: don't overwrite string values until read/alloc was succesful.
...
This prevents certain tags with a default value assigned to them (as per
the EBML syntax elements) from ever being assigned a NULL value. Other
parts of the code rely on these being non-NULL (i.e. they don't check for
NULL before e.g. using the string in strcmp() or similar), and thus in
effect this prevents crashes when reading of such specific tags fails,
either because of low memory or because of targeted file corruption.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Anton Khirnov
03ca0a5b30
lavc: merge two if()s with the same condition.
13 years ago
Anton Khirnov
d55fa6f9cb
lavc: factorize setting got_packet_ptr in avcodec_encode_video2()
13 years ago
Anton Khirnov
52953d61ca
lavc: signal no output when a NULL frame is passed to audio encoder without delay
13 years ago
Paul B Mahol
99cff417f3
xwdenc: fix monow encoding
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Paul B Mahol
159a2436b0
fate: add tests for cdxl video
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Paul B Mahol
904817cb9f
cdxl: fix ham6/8 on big endian
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Ronald S. Bultje
2bb628f870
swscale: fix another integer overflow at large dimensions/rescales.
13 years ago
Justin Ruggles
19adb0bc2d
vorbisdec: add a flush() function
...
clear MDCT overlap buffer and reset previous window mode when seeking
13 years ago
Ronald S. Bultje
830f70442a
fraps: release reference buffer on pix_fmt change.
...
Prevents crash when trying to copy from a non-existing plane in e.g.
a RGB32 reference image to a YUV420P target image
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Ronald S. Bultje
87840eeb71
avcodec: disallow reget_buffer() if pix_fmt changed.
13 years ago
Ronald S. Bultje
33cd32b389
kgv1: use avctx->get/release_buffer().
...
Also fixes crashes on corrupt bitstreams.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
John Van Sickle
d6a77e2b97
docs: use -bsf:[vas] instead of -[vas]bsf.
...
The latter syntax is now invalid.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Dale Curtis
b716542691
mpegaudiodec: Prevent premature clipping of mp3 input buffer.
...
Instead of clipping extrasize based on EXTRABYTES, clip based on the
amount of buffer actually left. Without this fix, there are warbles
and other distortions in the test case below.
http://kevincennis.com/mix/assets/sounds/1901_voxfx.mp3
13 years ago
Anton Khirnov
655b24c01c
lavf: move the packet keyframe setting code.
...
compute_pkt_fields() is for unreliable estimates or guessing. The
keyframe information from the parser is (at least in theory) reliable,
so it should be used even when the other guessing is disabled with the
AVFMT_FLAG_NOFILLIN flag.
Therefore, move setting the packet keyframe flag based on parser
information from compute_pkt_fields() to read_frame_internal().
13 years ago
Justin Ruggles
9677247b0a
oggenc: free comment header for all codecs
...
fixes a memleak for Vorbis and Theora, where the comment header from
avpriv_split_xiph_headers() is replaced by a buffer that must be freed
separately.
13 years ago
Ronald S. Bultje
be129271ea
lcl: error out if uncompressed input buffer is smaller than framesize.
...
This prevents crashes when trying to read beyond the end of the buffer
while decoding frame data.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Ronald S. Bultje
ab492ca2ab
mjpeg: abort decoding if packet is too large.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Ronald S. Bultje
46b3fbc30b
golomb: use HAVE_BITS_REMAINING() macro to prevent infloop on EOF.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Ronald S. Bultje
b44b41633f
get_bits: add HAVE_BITS_REMAINING macro.
13 years ago
Anton Khirnov
5ff42e3138
lavf/output-example: use new audio encoding API correctly.
13 years ago
Anton Khirnov
6e9ed7c7ae
lavf/output-example: more proper usage of the new API.
...
Passing the codec into avformat_new_stream() is preferred.
13 years ago
Alex Converse
447363870f
tiff: Prevent overreads in the type_sizes array.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Alex Converse
e32548d133
tiff: Make the TIFF_LONG and TIFF_SHORT types unsigned.
...
TIFF v6.0 (unimplemented) adds signed equivalents.
13 years ago