summaryrefslogtreecommitdiff
path: root/libavcodec/aacdec.c
Commit message (Collapse)AuthorAge
...
* aacdec: Cleanup decode_ics_info.Alex Converse2011-12-20
| | | | | | Remove unused function argument. Return an AVERROR. Don't zero out ICS on failure.
* aacdec: Use intfloat.h rather than local punning union.Alex Converse2011-12-12
|
* aac_latm: reconfigure decoder on audio specific config changesJanne Grunau2011-12-03
|
* latmdec: fix audio specific config parsingJanne Grunau2011-12-03
| | | | | | | | | Pass the correct size in bits to mpeg4audio_get_config and add a flag to disable parsing of the sync extension when the size is not known. Latm with AudioMuxVersion 0 does not specify the size of the audio specific config. Data after the audio specific config can be misinterpreted as sync extension resulting in random and wrong configs.
* Add avcodec_decode_audio4().Justin Ruggles2011-12-02
| | | | | | Deprecate avcodec_decode_audio3(). Implement audio support in avcodec_default_get_buffer(). Implement the new audio decoder API in all audio decoders.
* aacdec: Fix PS in ADTS.Alex Converse2011-11-22
| | | | Fixes File1.aac and Bug 80.
* aacdec: allow output reconfiguration on channel changesMichael Niedermayer2011-10-28
| | | | | | | | | | Locking the decoder against channel config changes in parse_adts_frame_header() seems to be unnecessary and streams with channel config changes are reported. The sample in http://roundup.libav.org/issue999 still works. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* aac_latm: remove unneeded check for zero-size packet.Justin Ruggles2011-10-26
| | | | This is already checked by avcodec_decode_audio3()
* cosmetics: simplify latm_decode_initJanne Grunau2011-10-25
|
* latm: avoid unnecessary reinit of the aac decoderJanne Grunau2011-10-25
|
* aacdec: initialize sbr context only in new channel elementsJanne Grunau2011-10-25
|
* lavc: replace references to deprecated AVCodecContext.error_recognition to ↵Dustin Brody2011-10-22
| | | | | | use AVCodecContext.err_recognition Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: use avpriv_ prefix for some mpeg4audio symbols used in lavf.Anton Khirnov2011-10-20
| | | | | Specifically, ff_mpeg4audio_sample_rates, ff_mpeg4audio_get_config and ff_copy_pce_data
* lavc: use avpriv_ prefix for ff_aac_parse_header().Anton Khirnov2011-10-20
| | | | It's used in lavf.
* aacdec: fix undefined shiftsMans Rullgard2011-10-08
| | | | | | Since nnz can be zero, this is needed to avoid a shift by 32. Signed-off-by: Mans Rullgard <mans@mansr.com>
* aac: Only set sample rate and object type from ADTS if output hasn't been ↵Alex Converse2011-08-18
| | | | | | | | | configured. Long term it would be nice to support error resilient reconfiguration but right now setting this every frame does more harm than help. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* aac: Set SBR and PS to unsignalled during headerless and ADTS initialization.Alex Converse2011-08-18
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* aac: Only output configure if audio was found.Alex Converse2011-08-18
| | | | | | Audio found is not triggered on a CCE because a CCE alone has no output. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* aac: Don't attempt to output configure an invalid channel configuration.Alex Converse2011-08-09
|
* aac: propagate error return values for AV_LOG_ERROR-triggering eventsDustin Brody2011-08-05
|
* aac: Remove some suspicious illegal memcpy()s from LTP.Alex Converse2011-08-01
|
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-29
| | | | It's more readable and less prone to breakage.
* lavf: Cleanup try_decode_frame() logic.Alex Converse2011-07-13
| | | | This fixes AAC playback in ffplay.
* Add support for aac streams in mp4/mov without extradata.Benjamin Larsson2011-06-30
|
* Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().Justin Ruggles2011-06-20
| | | | av_get_bits_per_sample_fmt() is deprecated.
* aacdec: fix typo in scalefactor clipping checkJustin Ruggles2011-05-23
|
* LATM/AAC: Free previously initialized context on reinit.Ronald S. Bultje2011-05-20
| | | | | | | | Fixes memory leaks which are the result of overwriting already-initialized MDCT contexts during context reinitialization, e.g. in valgrind fate-aac-latm_000000001180bc60. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Add floating-point sample format support to the ac3, eac3, dca, aac, and vorbisJustin Ruggles2011-05-18
| | | | | | decoders. Based on patches by clsid2 in ffdshow-tryout.
* aacdec: Use float instead of int16_t for ltp_state to avoid needless rounding.Justin Ruggles2011-05-15
|
* aacdec: remove sf_scale and sf_offset.Alex Converse2011-04-27
| | | | | | | Instead, scalefactors are adjusted by the offset amount, removing the need for sf_scale, and the MDCT scales are adjusted to compensate for the higher scalefactors. Floating-point output will be handled by modifying the MDCT scales.
* aacdec: use a scale of 2 in the LTP MDCT rather than doubling the coefficientJustin Ruggles2011-04-27
| | | | table values from the spec.
* Define POW_SF2_ZERO in aac.h and use for ff_aac_pow2sf_tabp[] offsets insteadAlex Converse2011-04-27
| | | | of hardcoding 200 everywhere.
* Large intensity stereo and PNS indices are legal. Clip them instead ofAlex Converse2011-04-27
| | | | | | | erroring out. A magnitude of 100 corresponds to 2^25 so the will most likely result in clipped output anyway. None of the conformance streams fall in the range that need to be clipped.
* Add some debug log messages to AAC extradataAlex Converse2011-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Wed, Apr 20, 2011 at 11:39 AM, Justin Ruggles <justin.ruggles@gmail.com> wrote: > On 04/20/2011 02:26 PM, Alex Converse wrote: > >> --- >>  libavcodec/aacdec.c |   10 +++++++++- >>  1 files changed, 9 insertions(+), 1 deletions(-) >> >> >> >> 0002-Add-some-Debug-log-messages-to-AAC-extradata.patch >> >> >> diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c >> index c9761a1..3ec274f 100644 >> --- a/libavcodec/aacdec.c >> +++ b/libavcodec/aacdec.c >> @@ -79,7 +79,6 @@ >>             Parametric Stereo. >>   */ >> >> - >>  #include "avcodec.h" >>  #include "internal.h" >>  #include "get_bits.h" > > > stray whitespace change > oops, fixed >From 94e8d0eea77480630f84368c97646cabc0f50628 Mon Sep 17 00:00:00 2001 From: Alex Converse <aconverse@google.com> Date: Wed, 20 Apr 2011 11:23:34 -0700 Subject: [PATCH] Add some debug log messages to AAC extradata MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1" This is a multi-part message in MIME format. --------------1 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit
* aacdec: indentation cosmeticsYoung Han Lee2011-04-22
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Convert some undefined 1<<31 shifts into 1U<<31.Alex Converse2011-04-11
| | | | | | | | | | | According to ISO 9899:1999 S 6.5.7/4: The result of E1 << E2 is E1 left-shifted E2 bit positions; vacated bits are filled with zeros. If E1 has an unsigned type, the value of the result is E1× 2^E2, reduced modulo one more than the maximum value representable in the result type. If E1 has a signed type and nonnegative value, and E1× 2^E2 is representable in the result type, then that is the resulting value; otherwise, the behavior is undefined.
* Revert "aac_latm_dec: use aac context and aac m4ac"Janne Grunau2011-04-05
| | | | | This reverts commit 36864ac3540445c513484017aa9927e942fac24a since it breaks LATM decoding in ffplay.
* Move sine windows to a separate fileMans Rullgard2011-03-20
| | | | | | | These windows do not really belong in fft/mdct files and were easily confused with the similarly named tables used by rdft. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Move ff_kbd_window_init() to a separate fileMans Rullgard2011-03-19
| | | | | | | This function is not tightly coupled to mdct, and it's in the way of making a fixed-point mdct implementation. Signed-off-by: Mans Rullgard <mans@mansr.com>
* fft: remove inline wrappers for function pointersMans Rullgard2011-03-19
| | | | | | | This removes the rather pointless wrappers (one not even inline) for calling the fft_calc and related function pointers. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* aac_latm_dec: use aac context and aac m4acThadeu Lima de Souza Cascardo2011-03-07
| | | | | | | | | | | When decoding latm config, use the corresponding aac context and its m4ac instead of using NULL and a local variable. This fixes decoding of audio in MPEG TS from SBTVD (the Brazillian Digital TV Sytem), when there is no extradata. This is the case when using the decoder with gst-ffmpeg and a GStreamer mpegts demuxer. Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* aacdec: Reduce the size of buf_mdct.Young Han Lee2011-02-21
| | | | | It was doubled in size for the LTP implementation. This brings it back down to its original size.
* aacdec: dsputilize the scalar multiplication in intensity stereoYoung Han Lee2011-02-19
|
* aacdec: Implement LTP support.Young Han Lee2011-02-14
| | | | Ported from gsoc svn.
* Replace remaining occurrences of CODEC_TYPE_* with AVMEDIA_TYPE*Anton Khirnov2011-02-03
| | | | | | Tested to compile with lavc major bump. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Separate format conversion DSP functions from DSPContext.Justin Ruggles2011-02-02
| | | | | | | This will be beneficial for use with the audio conversion API without requiring it to depend on all of dsputil. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove unneeded add bias from 3 functions.Justin Ruggles2011-01-31
| | | | | | | | DSPContext.vector_fmul_window() DCADSPContext.lfe_fir() SynthFilterContext.synth_filter_float() Signed-off-by: Mans Rullgard <mans@mansr.com>
* aacdec: Convert some loop copies into memcpy()s.Alex Converse2011-01-28
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* cosmetics: indentation and spacingJustin Ruggles2011-01-28
|