Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
13 years ago
Justin Ruggles
37f701f1c3
avcodec: allow either planar or interleaved sample format when encoding mono
When there is only 1 channel, the planar and interleaved formats of the same
data type should be treated as identical.
13 years ago
Justin Ruggles
5364327186
adpcmenc: ensure calls to adpcm_ima_compress_sample() are in the right order
Should fix fate-acodec-adpcm-ima_wav with several compilers.
13 years ago
Justin Ruggles
31b2262dca
wmaenc: use float planar sample format
13 years ago
Justin Ruggles
b1540fc884
(e)ac3enc: use planar sample format
13 years ago
Justin Ruggles
f3e2d68df6
aacenc: use planar sample format
13 years ago
Justin Ruggles
095be4fbf6
adpcmenc: use planar sample format for adpcm_ima_wav and adpcm_ima_qt
13 years ago
Justin Ruggles
d9a13c2f56
adpcmenc: move 'ch' variable to higher scope
It is used for multiple codecs.
13 years ago
Justin Ruggles
9606f19b4e
adpcmenc: fix 3 instances of variable shadowing
13 years ago
Justin Ruggles
1e35574bad
adpcm_ima_wav: simplify encoding
13 years ago
Justin Ruggles
cfc0a80a1d
libvorbis: use planar sample format
13 years ago
Justin Ruggles
473b297f26
libmp3lame: use planar sample formats
13 years ago
Justin Ruggles
233783e2c1
vorbisenc: use float planar sample format
13 years ago
Diego Biurrun
e4cbf7529b
Give all anonymously typedeffed structs in headers a name
Anonymous structs cannot be forward declared and have no benefit.
13 years ago
Mans Rullgard
642b4efaf7
ppc: fmtconvert: kill VLA in float_to_int16_interleave_altivec()
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
bcf07a15a0
x86: dsputil: kill VLA in gmc_mmx()
Instead of using an evil VLA, fall back to C version when edge
emulation is needed. MPEG4 GMC is a rarely used fringe feature
so the speed loss is an acceptable cost for safer code.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Dmitry Samonenko
f1c6a740fc
libspeexenc: Updated commentary to reflect recent changes
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Dmitry Samonenko
978d5bd2a7
libspeexenc: Add an option for enabling DTX
Discontinuous transmission is an addition to VAD/VBR operation, that
allows to greatly reduce bitrate for silent chunks or stationary
noises.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
30223b3bf2
lavc: deprecate the audio resampling API.
It has been superseded by lavr.
13 years ago
Ronald S. Bultje
f6f7d15041
h264: don't touch H264Context->ref_count[] during MB decoding
The variable is copied to subsequent threads at the same time, so this
may cause wrong ref_count[] values to be copied to subsequent threads.
This bug was found using TSAN.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Diego Biurrun
1e164c0bcc
build: Factor out mpegaudio dependencies to CONFIG_MPEGAUDIO
A new hidden config variable is added for the codecs that depend on the
mpegaudio parts.
13 years ago
Justin Ruggles
c9df48909e
libspeexdec: handle NULL return value from speex_packet_to_header()
This will happen when the extradata is not a valid Speex header.
13 years ago
Janne Grunau
1481e19825
mpegvideo: set extended_data in ff_update_duplicate_context()
AVFrame.extended_data has to reset to the AVFrame.data of the current
thread context after copying the frame contents.
Fixes crashes with frame-threading after 2bc0de3858 .
13 years ago
Justin Ruggles
45e5d0c3ac
libspeexdec: properly handle DTX for multiple frames-per-packet
13 years ago
Justin Ruggles
908e22b93a
libspeexdec: move the SpeexHeader from LibSpeexContext to where it is used
13 years ago
Justin Ruggles
892695c851
libspeexdec: simplify setting of frame_size
13 years ago
Justin Ruggles
27c3f9c03e
libspeexdec: set channel_layout
13 years ago
Justin Ruggles
29abb04e73
libspeexdec: If the channel count is not valid, decode as stereo.
When initialized as stereo, libspeex can decode either mono or stereo packets
and will output stereo.
13 years ago
Justin Ruggles
3b061c5e10
libspeexdec: improve setting of Speex mode and sample rate
If there is no extradata and the sample rate given by the user is not valid,
decode as ultra-wideband.
13 years ago
Dmitry Samonenko
ad11681acd
libspeex: Add a private option for enabling VAD
Speex detects non-speech periods and encodes them with just enough bits
to reproduce the background noise, aka ``comfort noise generation''.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Mans Rullgard
5e826fd65e
ARM: set Tag_ABI_align_preserved in all asm files
All our ARM asm preserves alignment so setting this attribute
in a common location is simpler. This removes numerous warnings
when linking with armcc.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Alex Converse
b92dfb56d4
tiffenc: Check av_malloc() results.
13 years ago
Alex Converse
9bc055e358
tiffenc: Simplify pixel format setup using AVPixFmtDescriptor.
13 years ago
Justin Ruggles
bfcd4b6a16
adpcmdec: set AVCodec.sample_fmts
13 years ago
Justin Ruggles
1478a3601e
twinvq: use planar sample format
13 years ago
Justin Ruggles
a34be78546
ralf: use planar sample format
13 years ago
Justin Ruggles
1a3459033d
mpc7/8: use planar sample format
13 years ago
Justin Ruggles
3fca0d7210
iac/imc: use planar sample format
13 years ago
Justin Ruggles
64c312aa29
dcadec: use float planar sample format
13 years ago
Justin Ruggles
cbf6ee7823
cook: use planar sample format
13 years ago
Justin Ruggles
9af4eaa8ea
atrac3: use float planar sample format
13 years ago
Justin Ruggles
461ba7e97a
apedec: output in planar sample format
13 years ago
Justin Ruggles
cf8c93ada4
8svx: use planar sample format
13 years ago
Nathan Caldwell
6cb8c85409
Opus encoder using libopus
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Diego Biurrun
d25fe4cc65
wmadec: Adjust debug printf argument length modifier
13 years ago
Diego Biurrun
1218777ffd
avcodec: Convert some commented-out printf/av_log instances to av_dlog
13 years ago
Diego Biurrun
9c6cf7f2c9
avcodec: Drop silly and/or broken printf debug output
13 years ago
Diego Biurrun
6f6b0311a3
avcodec: Drop some silly commented-out av_log() invocations
13 years ago
Diego Biurrun
14d3e7ad11
Remove some silly disabled code.
13 years ago
Justin Ruggles
56b6a43056
ac3dec: ensure get_buffer() gets a buffer for the correct number of channels
If there is an error during frame parsing, but AVCodecContext.channels was
changed and AC3DecodeContext.out_channels was set previously, the two may not
match.
Fixes CVE-2012-2802
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago