Reimar Döffinger
c54e00610f
sipr: fall back to setting mode based on bit_rate.
...
Not all applications (e.g. MPlayer) set block_align, and
when using a different demuxer it might not even be
easily available.
So fall back to selecting mode based on bit rate as before
if block_align has not useful value.
It can't be worse than failing to decode completely.
(cherry picked from commit 1d0d63052b
)
CC: libav-stable@libav.org
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
12 years ago
Diego Biurrun
dafcbfe443
celp_math: Replace duplicate ff_dot_productf() by ff_scalarproduct_c()
13 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
13 years ago
Martin Storsjö
00c3b67b8a
cosmetics: Align codec declarations
...
Also break some long lines, remove codec function placeholder comments
and add spaces in sample/pixel format lists.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
aaf47bcde7
Drop ALT_ prefix from BITSTREAM_READER_LE name.
...
The prefix is a historic remnant that probably meant "alternative".
Now that the A32 bitstream reader has been dropped it makes no sense anymore.
13 years ago
Justin Ruggles
0eea212943
Add avcodec_decode_audio4().
...
Deprecate avcodec_decode_audio3().
Implement audio support in avcodec_default_get_buffer().
Implement the new audio decoder API in all audio decoders.
13 years ago
Justin Ruggles
979c8de549
sipr: use a function pointer to select the decode_frame function
13 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
13 years ago
Justin Ruggles
0005f9a35b
sipr: do not needlessly set *data_size to 0 when returning an error
13 years ago
Mans Rullgard
c79d2a20ba
sipr: fix get_bits(0) calls
...
Zero-length get_bits() is undefined, must check before calling.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Justin Ruggles
1b5a189f06
sipr: fix the output data size check and only calculate it once.
13 years ago
Anton Khirnov
ec6402b7c5
lavc: use designated initialisers for all codecs.
...
It's more readable and less prone to breakage.
14 years ago
Alex Converse
4b84d5114d
sipr: Drop unused DSPContext
14 years ago
Alex Converse
1e3d5eec8e
sipr: include string.h for mem*()
14 years ago
Alex Converse
cb372931ff
sipr: Use memmove() to copy overlapped buffers.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
d36beb3f69
Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.
...
None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Stefano Sabatini
5d6e4c160a
Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum
...
SampleFormat with AVSampleFormat.
Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Vitor Sessak
6e2ecc2dba
Remove pointless semicolon
...
Originally committed as revision 25141 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Marcelo Galvăo Póvoa
48ac225db2
Move lsp2lpc_sipr() function to common code so it can be reused in a
...
AMRWB decoder.
Patch by Marcelo Galvăo Póvoa.
Originally committed as revision 25062 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
49bd8e4b84
Fix grammar errors in documentation
...
Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
b1078e9fe6
Move clipping of audio samples (for those codecs outputting float) from decoder
...
to the audio conversion routines.
Originally committed as revision 22937 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
8955a9d79c
Split input/output data arguments to ff_acelp_apply_order_2_transfer_function().
...
Originally committed as revision 22933 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
bb2dd9efd8
Split the input/output data arguments to ff_adaptive_gain_control().
...
Originally committed as revision 22932 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
95c6b5ebc8
Fix spelling.
...
Originally committed as revision 22470 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
d140b02581
SIPR16k decoder
...
Originally committed as revision 21234 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
d79c06b2ad
Allow a SIPR table to be used by the upcoming SIPR16k decoder
...
Originally committed as revision 21233 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
65323ed279
Split some SIPR structs to a header file for the upcoming SIPR16k commit
...
Originally committed as revision 21232 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
ef5e7fb253
Remove needless use of log2f()
...
Originally committed as revision 21185 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
1c3c129b8f
Remove the struct SiprModeParam of the context. This will simplify splitting
...
the file for future 16k mode decoder code.
Originally committed as revision 21184 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
f3da24c4c3
SIPR: kill variable-length arrays
...
Two of these are in fact constant size, so use the constant instead of
a variable in the declarations. The remaining one is small enough
that always using the maximum size is acceptable.
Originally committed as revision 21183 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vladimir Voroshilov
7bd3096f5f
SIPR decoder for modes 8k5, 6k5 and 5k0.
...
Patch by Vladimir Voroshilov and myself.
Originally committed as revision 21125 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago