Martin Storsjö
9b500b8f6c
avcodec: Add a RFC 3389 comfort noise codec
This isn't too useful as a normal codec, but can be used in
voip style applications. The decoder updates the noise
generator parameters when a packet is given to it for decoding,
but if called with an empty packet, it generates more noise
according to the last parameters.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
8b25a20efb
lpc: Add a function for calculating reflection coefficients from samples
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Justin Ruggles
39ef66f530
lpc: Add a function for calculating reflection coefficients from autocorrelation coefficients
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
bff5e5f8b3
indeo3: remove duplicate capabilities line.
13 years ago
Diego Biurrun
72c758f1fd
aacenc: Drop some unused function arguments
13 years ago
Anton Khirnov
f174fbac3c
lavc: add CODEC_CAP_DR1 to all video decoders missing them
13 years ago
Mans Rullgard
4471a24207
vp8: fix memset() crossing array boundary
Indexing across array boundaries is not allowed by C99.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
c4cccc8d3f
h264: fix invalid pointer arithmetic
Subtracting a (positive) value from the address of an array violates
C99 section 6.5.6:
If both the pointer operand and the result point to elements of the
same array object, or one past the last element of the array object,
the evaluation shall not produce an overflow; otherwise, the
behavior is undefined.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
50be207759
amrwbdec: fix invalid pointer arithmetic
Subtracting a (positive) value from the address of an array violates
C99 section 6.5.6:
If both the pointer operand and the result point to elements of the
same array object, or one past the last element of the array object,
the evaluation shall not produce an overflow; otherwise, the
behavior is undefined.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
87cdd7c694
ivi_common: Drop unused function parameter from decode_band()
13 years ago
Diego Biurrun
707f58f515
cook: Remove some silly Doxygen comments
13 years ago
Diego Biurrun
8a61ba0e81
cook: Remove senseless maybe_reformat_buffer32() function
13 years ago
Diego Biurrun
f23b4a0682
cook: cosmetics: Better names for joint_decode() function parameters
13 years ago
Diego Biurrun
20015379a4
cook: cosmetics: Better name for ccpl COOKSubpacket member
13 years ago
Janne Grunau
154ff81870
h263: avoid memcpys over array bound in motion vector caching for obmc
Fixes CID602232.
13 years ago
Luca Barbato
22f7942fe7
ffv1: set the range coder state in decode_slice_header
13 years ago
Diego Biurrun
5bac2d0c30
avutil: Move memcpy_backptr() to mem.c
The function is used elsewhere and does not belong with the LZO code.
13 years ago
Anton Khirnov
5a9567631a
g.723.1: add missing CODEC_CAP_DR1
13 years ago
Anton Khirnov
1bc64c2814
lavc: initialize output AVFrame before decoding.
Avoids memleaks with audio when extended_data is nontrivial and the user
doesn't reset the frame.
Shouldn't have any effect for video for now, but might be useful in the
future.
13 years ago
Justin Ruggles
c68317ebbe
lavc: fix documentation for AVCodecContext.delay
13 years ago
Justin Ruggles
44d854a518
atrac3: return an error if extradata_size is not a specific known size
Also fixes 3 compiler warnings about using uninitialized variables.
13 years ago
Justin Ruggles
a5ef830b12
lavc: use the correct API version guard macro for avcodec_encode_audio()
13 years ago
Mans Rullgard
a153e45b95
dfa: use av_memcpy_backptr() where previously impossible
Since the requirement for output padding has been lifted, we can
use av_memcpy_backptr() here as well.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
e831b3b852
av_memcpy_backptr: Drop no longer necessary malloc padding
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
330b864cda
dsputil: Replace AV_WNxx(AV_RNxx()) combinations by AV_COPYxxU
13 years ago
Diego Biurrun
aa91fe8091
dxtory: Replace AV_WN16A(AV_RN16A()) combination by AV_COPY16
13 years ago
Luca Barbato
9ab0874ea8
mp3: properly forward mp_decode_frame errors
The function can return either a parsing error or a memory management
error.
13 years ago
Luca Barbato
0c03cc6838
mp3: exit on parsing error in mp_decode_frame
Properly forward mp_decode_layer3 errors, mp_decode_layer1 and
mp_decode_layer2 do not return errors.
Based on a patch by Michael Niedermayer.
13 years ago
Mans Rullgard
fab0a8b2c6
libm: add fallbacks for various single-precision functions
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Michael Niedermayer
ec444c84cf
mpegaudiodec: Fix buffer handling on random access
13 years ago
Diego Biurrun
2f17f265ed
mpegaudio: Refactor mp3on4 flush function
13 years ago
Diego Biurrun
8f4c414df6
Improve wording and spelling of av_log_missing_feature messages.
13 years ago
Anton Khirnov
c6b25d1d5e
Revert "avutil: Add a copy of ff_sqrt_tab back into avutil to restore ABI compatibility"
This reverts commit d15c21e5fa .
After the major bump this is no longer necessary.
13 years ago
Justin Ruggles
a1f4cd371a
atrac3: replace a calculation with FFALIGN()
This allocates 4 bytes less than the previous code if avctx->block_align is
a multiple of 4, but the extra 4 bytes is not really needed.
13 years ago
Justin Ruggles
808686fc1e
atrac3: remove unused ATRAC3Context field, sample_rate
13 years ago
Justin Ruggles
89a6c32bc1
atrac3: use sizeof(variable) instead of sizeof(type)
13 years ago
Justin Ruggles
327747de15
atrac3: simplify MDCT window calculation
13 years ago
Justin Ruggles
5d1007f74d
atrac3: initialize static tables in AVCodec.init_static_data()
13 years ago
Justin Ruggles
78edce3f19
atrac3: separate window initialization from IMDCT initialization
13 years ago
Justin Ruggles
c51311b907
atrac3: move the 'frame_factor' field from ATRAC3Context to where it is used
13 years ago
Justin Ruggles
7e76f27081
atrac3: remove unused ATRAC3Context field, bit_rate
13 years ago
Justin Ruggles
a2664c91fb
atrac3: move the 'samples_per_frame' field from ATRAC3Context to where it is used
13 years ago
Justin Ruggles
7c1f93afe6
atrac3: remove unused ATRAC3Context field, samples_per_channel
13 years ago
Justin Ruggles
cdd0e0de81
atrac3: use AVCodecContext.block_align instead of keeping a private copy
13 years ago
Justin Ruggles
64ebbb8f89
atrac3: move the 'delay' field from ATRAC3Context to where it is used
13 years ago
Justin Ruggles
56a9d2b44e
atrac3: move the 'version' field from ATRAC3Context to where it is used
13 years ago
Justin Ruggles
5ac673b553
atrac3: use AVCodecContext.channels instead of keeping a private copy
13 years ago
Justin Ruggles
aefdb735c3
atrac3: simplify some loop indexing
13 years ago
Justin Ruggles
e55d53905f
atrac3: cosmetics: pretty-printing and renaming
also does some minor refactoring.
13 years ago
Mans Rullgard
abdee95224
pcm: define AVCodec instances only for enabled codecs
This defines an AVCodec only if the corresponding CONFIG option is
enabled instead of using the broad CONFIG_ENCODERS/DECODERS.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago