summaryrefslogtreecommitdiff
path: root/libavcodec/aacdec.c
Commit message (Collapse)AuthorAge
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* aacdec: fix aac_static_table_init() prototypeAnton Khirnov2015-12-07
|
* aac: Make codec init run under ff_thread_onceDerek Buitenhuis2015-10-15
| | | | | | This makes AAC init threadsafe. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* aac: Make sure to set err on the failure pathLuca Barbato2015-08-23
| | | | Bug-Id: CID 1308153
* lavc: Consistently prefix input buffer definesVittorio Giovara2015-07-27
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-27
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: AV-prefix all codec flagsVittorio Giovara2015-07-27
| | | | | | Convert doxygen to multiline and express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* aac: Wait to know the channels before allocating frameLuca Barbato2015-06-07
| | | | | | | | The channel configuration can be delivered only by the PCE, try to parse it first and not try to decode until a channel configuration is set. CC: libav-stable@libav.org
* aac: Support channel configurations 11 and 12Sebastian Dröge2015-06-07
| | | | | | | | | | | These are defined in ISO/IEC 14496-3:2009/PDAM 4 for 6.1 and 7.1. It also defines another 7.1 layout with configuration 14, that one is not added here for now. 11: 3/3.1 FC FL+FR BL+BR BC LFE 12: 3/2/2.1 FC FL+FR SiL+SiR BL+BR LFE Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* aac: correctly map 7.1ch-wide AAC from FDK AAC encodernu7742015-06-07
| | | | | | | | | | FDK AAC encoder outputs SCE(front)+CPE(front)+CPE(back)+CPE(back) on MODE_7_1_REAR_SURROUND configuration. Since decoder couldn't properly map 4 back channels, decoding failed unless -request_channel_layout 0x8000000000000000 has been specified. Now we treat first CPE(back) as CPE(side) on channel mapping. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* aac: Correctly map multichannel ADTS AAC with non-zero channel_config + PCEnu7742015-06-03
| | | | | | | | | | | | | | | The decoder assigns channels using default channel configuration for 5.1ch when it parses an ADTS frame header using consecutive channel ids. When a PCE comes, it reassigns channels using PCE configuration using directly the ids provided. They can be arbitrary. Always use consecutive channel ids to avoid decoding glitches due spurious reconfigurations due the channel ids mismatch between the two otherwise-identical channel maps. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* aacdec: consistently use avctx for logging in decode_eld_specific_configAndreas Cadhalpun2015-04-19
| | | | | | ac may be NULL and then accessing ac->avctx results in a segmentation fault. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* lavc: Replace av_dlog and tprintf with internal macrosVittorio Giovara2015-04-19
|
* aac: Relax reserved_bit validationVittorio Giovara2015-03-04
| | | | | | | | | | | Although the specification mandates this bit to zero, it may happen that software tools incorrectly flip it to one, invalidating a possibly valid stream. Relax this restriction, by failing only when AV_EF_BITSTREAM is set. This behaviour is similar to aac decoders in Firefox and Quicktime. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: remove unused traces of fmtconvert usageAnton Khirnov2015-02-28
| | | | | Those decoders have been switched to float output and so do not use fmtconvert anymore.
* aacdec: Support for ER AAC ELD 480.Alex Converse2015-02-03
| | | | Based in part on work from Niel van der Westhuizen <espes@pequalsnp.com>.
* aacdec: Tables for length 480 AAC ELD.Niel van der Westhuizen2015-02-03
|
* aacdec: Support for ER AAC in LATMNiel van der Westhuizen2015-02-03
|
* aacdec: Refactor aac_er_decode_frame.Alex Converse2015-02-03
|
* aacdec: Refactor decode_ics_info.Alex Converse2015-02-03
|
* aac: Simplify decode_mid_side_stereoLuca Barbato2014-12-02
| | | | | Might spare few cycles if the compiler is naive and makes the function more readable.
* aacdec: avoid an out-of-bounds writeVittorio Giovara2014-11-24
| | | | | | | Also move the check in the case it is actually used. CC: libav-stable@libav.org Bug-Id: CID 1087090
* aacdec: add default case in channel layoutVittorio Giovara2014-11-04
| | | | Bug-Id: CID 732291
* Update dsputil- and SIMD-related comments to match reality more closelyDiego Biurrun2014-03-13
|
* latm: Always reconfigure if no extradata was set previouslyHendrik Leppkes2014-02-28
| | | | | | | | | | AAC LOAS can have new audio config objects in the stream itself. Make sure the decoder reconfigures itself when the first one arrives midstream. Bug-Id: 644 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* aacdec: set AVFrame sample_rateJohn Stebbins2014-02-12
| | | | | | AVFrame.sample_rate is set in ff_get_buffer, but aacdec calls ff_get_buffer before the samplerate is known. So it needs to be set again before returning the frame.
* aac: Fix low delay windowing.Alex Converse2014-01-04
| | | | AAC LD uses a low overlap sine window instead of a KBD window.
* aac: Fix TNS decoding for the 512 sample window family.Alex Converse2014-01-04
|
* Add missing #includes for *INT64_MAX and *INT64_CDiego Biurrun2013-11-23
|
* aacdec: Set the profile during decodingGian-Carlo Pascutto2013-11-04
| | | | | | | Previously the profile would not be set if the bitstream needs to be decoded to know the profile. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* aacdec: Fix calls to avpriv_report_missing_feature().Alex Converse2013-10-25
| | | | It does not take log level as an argument.
* aac: Add support for Enhanced AAC Low Delay (ER AAC ELD).Alex Converse2013-10-23
| | | | | This does not include support for LD SBR, epTool, data resilience, nor the 960 transform family.
* aacdec: Use avpriv_report_missing_feature() instead of custom logging.Alex Converse2013-10-23
|
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
|
* aacdec: Add support for LD (Low Delay) AACAlex Converse2013-09-18
|
* aacdec: Add support for Error Resilience syntax.Alex Converse2013-09-18
| | | | This does not add support for any error resilience tools.
* aac: Forward errors properly in aac_decode_frame_intLuca Barbato2013-08-04
| | | | Incidentally also remove a warning.
* aac: Check init_get_bits return valueLuca Barbato2013-08-04
| | | | | | Some code paths can call it with invalid length. CC: libav-stable@libav.org
* cosmetics: Add '0' to float constants ending in '.'.Diego Biurrun2013-07-25
|
* aac: return meaningful errorsLuca Barbato2013-06-27
|
* aac: K&R formatting cosmeticsLuca Barbato2013-06-27
|
* aac: check the maximum number of channelsLuca Barbato2013-04-28
| | | | | | | Broken bitstreams could report a larger than specified number of channels and cause outbound writes. CC:libav-stable@libav.org
* avcodec: av_log_missing_feature(1) ---> avpriv_request_sample()Diego Biurrun2013-03-13
|
* avcodec: av_log_ask_for_sample() ---> avpriv_request_sample()Diego Biurrun2013-03-13
|
* av_log_missing_feature() ---> avpriv_report_missing_feature()Diego Biurrun2013-03-13
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* Remove unnecessary dsputil.h #includesDiego Biurrun2013-02-26
|
* aac: decode directly to the user-provided AVFrameJustin Ruggles2013-02-12
|
* floatdsp: move scalarproduct_float from dsputil to avfloatdsp.Ronald S. Bultje2013-01-22
| | | | This makes the aac decoder and all voice codecs independent of dsputil.
* floatdsp: move butterflies_float from dsputil to avfloatdsp.Ronald S. Bultje2013-01-22
| | | | | This makes wmadec/enc, twinvq and mpegaudiodec (i.e. mp2/mp3) independent of dsputil.