Justin Ruggles
fa9aeb82e2
avcodec: fix some const warnings
libavcodec/options.c:583: warning: assignment discards qualifiers from pointer
target type
libavcodec/options.c:589: warning: initialization discards qualifiers from
pointer target type
14 years ago
Justin Ruggles
86d3730360
avcodec: remove pointless AVOption, internal_buffer_count
14 years ago
Luca Barbato
b7d939d998
cinepack: return non-generic errors
14 years ago
Michael Niedermayer
a4009c6a9a
cinepak: remove redundant coordinate checks
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Michael Niedermayer
867b496681
cinepak: check strip_size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Michael Niedermayer
d92fea2b14
cinepak, simplify, use AV_RB24()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Michael Niedermayer
a2b51fe87c
cinepak: simplify, use FFMIN()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Michael Niedermayer
b55aa7df6b
cinepak: Fix division by zero, ask for sample if encoded_buf_size is 0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Alex Converse
bb4b0ad83b
vp5: Fix illegal read.
Found with Address Sanitizer
14 years ago
Thierry Foucu
e0966eb140
vp6: Fix illegal read.
Found with Address Sanitizer
Signed-off-by: Alex Converse <alex.converse@gmail.com>
14 years ago
Martin Storsjö
268fb3f985
mpegaudiodec: Don't use a nonexistent log context for av_dlog
This fixes builds with DEBUG defined, broken since
1158745a2d .
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Mike Melanson
747283a078
cinepak: Add another special case so that it can handle the following file:
http://samples.mplayerhq.hu/V-codecs/CVID/bad_cinepak_frame_size.mov
This fix works around another work around which handles a different type
of odd Cinepak data.
Thanks to Matthew Hoops (clone2727 - gmail.com) for the sample and fix.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Kostya Shishkov
ffc638c283
lagarith: add some RGBA decoding support
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Nathan Caldwell
39616fc307
lagarith: Add correct line prediction for RGB
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Justin Ruggles
f1d1516e55
cosmetics: indentation
14 years ago
Justin Ruggles
1158745a2d
mpegaudiodec: init static tables in AVCodec.init_static_data()
14 years ago
Mans Rullgard
3f5d6a665a
binkvideo: simplify and remove invalid shifts
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Sebastien Zwickert
ac3dbb4d58
hwaccel: OS X Video Decoder Acceleration (VDA) support.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
14 years ago
Janne Grunau
29ae0565d9
vble: remove vble_error_close
It does not make much sense to factor the error handling to its own
av_always_inline function. Fixes "format not a string literal and no
format arguments" warning in the av_log.
14 years ago
Derek Buitenhuis
c433a3f9a5
VBLE Decoder
Add a decoder for the VBLE Lossless Codec, which
still has a cult following. Used to be popular
several years ago on doom9.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Justin Ruggles
b656c4d08e
tta: use an integer instead of a pointer to iterate output samples
14 years ago
Justin Ruggles
5c210e2cb9
shorten: do not modify samples pointer when interleaving
14 years ago
Justin Ruggles
befc473c00
mpc7: only support stereo input.
The Musepack SV7 reference encoder converts mono to stereo when encoding.
14 years ago
Justin Ruggles
8dbc6d03c0
dpcm: do not try to decode empty packets
14 years ago
Justin Ruggles
e79da63282
dpcm: remove unneeded buf_size==0 check.
It is already checked in avcodec_decode_audio3()
14 years ago
Justin Ruggles
9d06037d48
twinvq: add SSE/AVX optimized sum/difference stereo interleaving
14 years ago
Justin Ruggles
7b966566da
vqf/twinvq: pass vqf COMM chunk info in extradata
This is needed because the twinvq decoder cannot rely on bit_rate to be set.
The API documentation says that bit_rate is set by libavcodec, not by the
user.
14 years ago
Justin Ruggles
a8a6da4a0e
twinvq: check for allocation failure in init_mdct_win()
14 years ago
Alex Converse
88b2436911
mpc7: Fix memset call in mpc7_decode_frame function
14 years ago
Justin Ruggles
164fca39bd
atrac1: use correct context for av_log()
14 years ago
Justin Ruggles
c298b2b8db
apedec: consume the whole packet when copying to the decoder buffer.
This avoids artifically consuming a partial packet but ignoring remaining data
in subsequent calls.
14 years ago
Justin Ruggles
de157f2118
apedec: do not needlessly copy s->samples to nblocks.
also move nblocks to the local scope where it is used.
14 years ago
Justin Ruggles
4315c7d35a
apedec: check output buffer size after calculating actual output size
14 years ago
Justin Ruggles
ad17207b51
apedec: remove unneeded entropy decoder normalization.
The decoder already skips data at the end of the packet without this.
Also remove 2 APEContext fields that were only used for the end-of-frame
normalization.
14 years ago
Justin Ruggles
59f4d1b8bb
truespeech: use memmove() in truespeech_update_filters()
14 years ago
Justin Ruggles
41899b9acb
vorbisdec: remove AVCODEC_MAX_AUDIO_FRAME_SIZE check
The user could provide a larger buffer, which is already checked separately
before writing output.
14 years ago
Justin Ruggles
e551a6f49a
vorbisdec: remove unneeded buf_size==0 check
14 years ago
Justin Ruggles
f666276fa6
vorbisdec: return proper error codes instead of made-up ones
14 years ago
Laurent Aimar
2305742b2a
sunrast: Check for invalid/corrupted bitstream
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
Justin Ruggles
f1f6d3615f
avcodec: add support for planar signed 8-bit PCM.
It is found in some 8svx files (e.g. ones created by SoX).
Currently the decoder reuses the 8svx functions because we already have
handling of a single large planar packet for the compressed 8svx codecs.
14 years ago
Justin Ruggles
fed5ca255f
ra144enc: add sample_fmts list to ff_ra_144_encoder
This enables the user (i.e. avconv) to automatically convert to the supported
sample format if needed.
14 years ago
Justin Ruggles
818a3bdedf
smackaud: use uint8_t* for 8-bit output buffer type
This matches the output sample format and the range of the output values.
14 years ago
Justin Ruggles
375ca0aca8
smackaud: clip output samples
14 years ago
Justin Ruggles
c86c3c8017
smackaud: use sign_extend() for difference value instead of casting
14 years ago
Justin Ruggles
979c8de549
sipr: use a function pointer to select the decode_frame function
14 years ago
Justin Ruggles
3468ff1060
sipr: set mode based on block_align instead of bit_rate
the user is not required to set bit_rate
14 years ago
Justin Ruggles
0005f9a35b
sipr: do not needlessly set *data_size to 0 when returning an error
14 years ago
Justin Ruggles
9cb70ce34b
ra288: fix formatting of LOCAL_ALIGNED_16
14 years ago
shahriman AMS
c33d4916fb
VC1: Add bottom field offset to block_index[] to avoid rewriting (+10L)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
shahriman AMS
62622d04eb
vc1dec: move an if() block.
There are no reason for "if (c_valid) { ... }" to appear before
"if (b_valid) { ... }".
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago