Diego Biurrun
124e28847b
Remove some stray unnecessary ffmpeg references.
13 years ago
Diego Biurrun
d1dfcb0829
vp3: remove some pointless comments
13 years ago
Anton Khirnov
ec22979a1d
id3v2: fix type of ID3v2EMFunc.free()
13 years ago
Anton Khirnov
5511ad14fe
lavc: use designated initialisers for parsers.
13 years ago
Justin Ruggles
da24963725
g726dec: add flush() function to reset state when seeking
13 years ago
Justin Ruggles
97f5dd1d84
g726: don't pass index to g726_reset()
...
calculate it from c->code_size instead.
13 years ago
Justin Ruggles
615b2a2cf5
g726enc: add private option for setting code size directly.
...
This is an easy alternative to setting bit_rate. This patch also selects the
closest bit_rate to the requested one rather than requiring an exact value.
13 years ago
Justin Ruggles
7abb73d4ba
g726: wrap the decoder functions with a CONFIG_ADPCM_G726_DECODER check
13 years ago
Justin Ruggles
437c11ca16
g726: group the g726_encoder AVCodec with the other encoding functions
13 years ago
Justin Ruggles
50969c0f46
g726: return AVERROR(EINVAL) instead of -1 for invalid channel count
13 years ago
Justin Ruggles
50c466d609
g726enc: use av_assert0() for sample_rate validation
...
This should never happen, but the check avoids a divide-by-zero.
13 years ago
Justin Ruggles
9e78d8cfdf
g726: treat sample rates other than 8kHz as unofficial.
13 years ago
Justin Ruggles
6e8d4a7afb
g726dec: remove the sample_rate validation
13 years ago
Justin Ruggles
6ac34eed54
g726: use bits_per_coded_sample instead of bitrate to determine mode
...
This requires some workarounds in the WAV muxer and demuxer. We need to write
the correct bits_per_coded_sample and block_align in the muxer. In the
demuxer, we cannot rely on the bits_per_coded_sample value, so we use the bit
rate and sample rate to determine the value.
This avoids having the decoder rely on AVCodecContext.bit_rate, which is not
required to be set by the user for decoding according to our API.
13 years ago
Justin Ruggles
d405237bae
g726: split the init function for the encoder and decoder
...
This also allows for not having a decoder close function.
13 years ago
Justin Ruggles
c8d36d254e
g726: pre-calculate the number of output samples.
...
Allows for checking output buffer size and simplification of decoding loop.
13 years ago
Justin Ruggles
e61a670b53
g726: use int16_t instead of short
13 years ago
Martin Storsjö
7b7b220cf7
Enable w32threads automatically unless explicitly disabled
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
02170990fd
cmdutils: Rename read_file to cmdutils_read_file
...
This symbol name clashes with a symbol in gnutls, if linking
statically to that library.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
45235d69c2
libdirac/libschroedinger: Drop unnecessary symbol prefixes.
...
The names used in the libdirac/libschroedinger wrappers are long enough as-is.
Bloating them with unnecessary prefixes makes them even more unwieldy.
13 years ago
Janne Grunau
d94c577d3c
cmdutils: check fread() return value
13 years ago
Justin Ruggles
7d1b17b833
cin audio: use sign_extend() instead of casting to int16_t
13 years ago
Justin Ruggles
405af43104
cin audio: restructure decoding loop to avoid a separate counter variable
...
Also check output buffer size instead of truncating output.
13 years ago
Justin Ruggles
859bdc33e4
cin audio: use local variable for delta value
13 years ago
Justin Ruggles
64e19ba48b
cin audio: remove unneeded cast from void*
13 years ago
Justin Ruggles
03381c12b3
cin audio: validate the channel count
13 years ago
Justin Ruggles
664eb77dc3
cin audio: remove unneeded AVCodecContext pointer from CinAudioContext
13 years ago
Justin Ruggles
44d2a982ac
dsicin: fix several audio-related fields in the CIN demuxer
...
bits_per_coded_sample should be 8.
block_align is calculated incorrectly, but it is not needed anyway.
packet pts should be calculated in samples.
packet duration can be set.
13 years ago
Justin Ruggles
5bd0343bee
flacdec: use av_get_bytes_per_sample() to get sample size
13 years ago
Justin Ruggles
272fcc32bb
dca: handle errors from dca_decode_block()
...
Return error if core block decoding fails.
Do not enable XCh if XCh extension block decoding fails.
13 years ago
Justin Ruggles
aae6eead6a
dca: return error if the frame header is invalid
13 years ago
Justin Ruggles
f44059d260
dca: return proper error codes instead of -1
13 years ago
Kostya Shishkov
46e1af3b0f
utvideo: handle empty Huffman trees
...
If the frame is filled with the same colour, encoder may produce no data
and the fill value is indicated by zero code length (the rest of symbols
will have 0xFF for code length, meaning invalid). So such Huffman trees
should be treated specially.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Justin Ruggles
425a843505
binkaudio: change short to int16_t
13 years ago
Justin Ruggles
4f4e19480a
binkaudio: only decode one block at a time.
...
This prevents truncating output due to an output buffer that is too small for
all blocks. There is no limit on the number of blocks in a packet.
13 years ago
Justin Ruggles
eaddd29e00
binkaudio: store interleaved overlap samples in BinkAudioContext.
...
This fixes the requirement for the buffer size to be larger than the number of
samples actually decoded.
13 years ago
Justin Ruggles
9f48039a37
binkaudio: pre-calculate quantization factors
13 years ago
Justin Ruggles
101ef19ef4
binkaudio: add some buffer overread checks.
...
This stops decoding before overreads instead of after.
13 years ago
Justin Ruggles
2073224697
atrac3: support float or int16 output using request_sample_fmt
13 years ago
Justin Ruggles
a047851329
atrac3: add CODEC_CAP_SUBFRAMES capability
...
the decoder can handle multiple frames in a packet
13 years ago
Justin Ruggles
8f98577d4d
atrac3: return appropriate error codes instead of -1
13 years ago
Justin Ruggles
47b617021d
atrac3: make sure all memory is freed on init failure
13 years ago
Justin Ruggles
c91613857d
atrac3: add a couple macro constants
13 years ago
Justin Ruggles
1fead73d7b
atrac3: return error if packet is too small
13 years ago
Justin Ruggles
7e4881a2d0
atrac3: check output buffer size before decoding
13 years ago
Justin Ruggles
6ba7f78bbb
atrac3: use separate pointers for each channel in decodeFrame()
13 years ago
Justin Ruggles
5e76b8bb76
atrac3: use optimized float_interleave() function for stereo interleaving
13 years ago
Justin Ruggles
8af33cb38a
atrac3: decode mono directly to the output buffer
13 years ago
Justin Ruggles
c4a6fde33f
atrac3: decode output to float samples instead of converting to s16
13 years ago
Justin Ruggles
f20dd574f1
atrac1: return appropriate error codes instead of -1
13 years ago