summaryrefslogtreecommitdiff
path: root/libavcodec/ac3dec.c
Commit message (Collapse)AuthorAge
* avcodec/ac3dec: Print the value of out of range exponentsMichael Niedermayer2015-12-24
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ac3: always use hardcoded tablesGanesh Ajjanagadde2015-11-30
| | | | | | | | | | | | | | | | | The table in question is a 253 byte one. In fact, it turns out that dynamic generation of the table results in an increased binary size. Code compiled with GCC 5.2.0, x86-64 (size in bytes), before and after patch: old: 62321064 libavcodec/libavcodec.so.57 new: 62320536 libavcodec/libavcodec.so.57 Thus, it always make sense to statically allocate this. Tested with FATE with/without --enable-hardcoded-tables. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avcodec: drop 2 suffix from avpriv_ac3_parse_header2Andreas Cadhalpun2015-10-22
| | | | | | | avpriv_ac3_parse_header was removed in commit 3dfb643. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* Merge commit 'dc70c19476e76f1118df73b5d97cc76f0e5f6f6c'Hendrik Leppkes2015-09-05
|\ | | | | | | | | | | | | * commit 'dc70c19476e76f1118df73b5d97cc76f0e5f6f6c': lavc: Drop deprecated request_channels related functions Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * lavc: Drop deprecated request_channels related functionsVittorio Giovara2015-08-28
| | | | | | | | Deprecated in 04/2011.
| * lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-27
| | | | | | | | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '7c6eb0a1b7bf1aac7f033a7ec6d8cacc3b5c2615'Michael Niedermayer2015-07-27
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7c6eb0a1b7bf1aac7f033a7ec6d8cacc3b5c2615': lavc: AV-prefix all codec flags Conflicts: doc/examples/muxing.c ffmpeg.c ffmpeg_opt.c ffplay.c libavcodec/aacdec.c libavcodec/aacenc.c libavcodec/ac3dec.c libavcodec/ac3enc_float.c libavcodec/atrac1.c libavcodec/atrac3.c libavcodec/atrac3plusdec.c libavcodec/dcadec.c libavcodec/ffv1enc.c libavcodec/h264.c libavcodec/h264_loopfilter.c libavcodec/h264_mb.c libavcodec/imc.c libavcodec/libmp3lame.c libavcodec/libtheoraenc.c libavcodec/libtwolame.c libavcodec/libvpxenc.c libavcodec/libxavs.c libavcodec/libxvid.c libavcodec/mpeg12dec.c libavcodec/mpeg12enc.c libavcodec/mpegaudiodec_template.c libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c libavcodec/mpegvideo_motion.c libavcodec/nellymoserdec.c libavcodec/nellymoserenc.c libavcodec/nvenc.c libavcodec/on2avc.c libavcodec/options_table.h libavcodec/opus_celt.c libavcodec/pngenc.c libavcodec/ra288.c libavcodec/ratecontrol.c libavcodec/twinvq.c libavcodec/vc1_block.c libavcodec/vc1_loopfilter.c libavcodec/vc1_mc.c libavcodec/vc1dec.c libavcodec/vorbisdec.c libavcodec/vp3.c libavcodec/wma.c libavcodec/wmaprodec.c libavcodec/x86/hpeldsp_init.c libavcodec/x86/me_cmp_init.c Merged-by: Michael Niedermayer <michael@niedermayer.cc>
| * 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>
* | avcodec/ac3dec: Put CONFIG* first in if()Michael Niedermayer2015-03-26
| | | | | | | | | | | | This may fix build failures with EAC3 disabled and is more consistent Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/ac3dec_fixed: fix compilation when ac3dec is disabledJames Almer2015-03-17
| | | | | | | | | | Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/ac3dec: Fix undefined shiftsMichael Niedermayer2015-03-15
| | | | | | | | | | | | Found-by: Clang -fsanitize=shift Reported-by: Thierry Foucu <tfoucu@google.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ac3dec: cosmeticsChristophe Gisquet2015-03-14
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ac3_fixed: fix computation of spx_noise_blendChristophe Gisquet2015-03-14
| | | | | | | | | | | | It was set to 1 instead of sqrt(3) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ac3_fixed: fix out-of-bound readChristophe Gisquet2015-03-14
| | | | | | | | | | | | Should also improve decoding, but actually doesn't... Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '7f9f771eac0d37a632e0ed9bd89961d57fcfb7e0'Michael Niedermayer2015-02-14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7f9f771eac0d37a632e0ed9bd89961d57fcfb7e0': avcodec: Don't anonymously typedef structs Conflicts: libavcodec/alac.c libavcodec/cinepak.c libavcodec/cscd.c libavcodec/dcadec.c libavcodec/g723_1.c libavcodec/gif.c libavcodec/iff.c libavcodec/kgv1dec.c libavcodec/libopenjpegenc.c libavcodec/libspeexenc.c libavcodec/ra288.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avcodec: Don't anonymously typedef structsDiego Biurrun2015-02-14
| |
* | avcodec/ac3dec: use init_get_bits8()Paul B Mahol2015-02-04
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/ac3dec: Use avpriv_float_dsp_alloc()Michael Niedermayer2014-11-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Improved AC3 decoder level support (heavy drc, dialnorm)Jean-Francois Thibert2014-08-27
| | | | | | | | | | | | | | | | | | Added support for AC3 heavy dynamic range compression used to restrict the output range and added a setting to specify the output target level and use the dialog normalization field to apply it in the digital domain. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'c67b449bebbe0b35c73b203683e77a0a649bc765'Michael Niedermayer2014-06-23
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c67b449bebbe0b35c73b203683e77a0a649bc765': dsputil: Split bswap*_buf() off into a separate context Conflicts: configure libavcodec/4xm.c libavcodec/ac3dec.c libavcodec/ac3dec.h libavcodec/apedec.c libavcodec/eamad.c libavcodec/flacenc.c libavcodec/fraps.c libavcodec/huffyuv.c libavcodec/huffyuvdec.c libavcodec/motionpixels.c libavcodec/truemotion2.c libavcodec/x86/Makefile libavcodec/x86/dsputil_init.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * dsputil: Split bswap*_buf() off into a separate contextDiego Biurrun2014-06-22
| |
* | avcodec/ac3dec: use av_freep() for safteyMichael Niedermayer2014-04-02
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/ac3dec: avoid #if, use if() instead, its cleaner and shorterMichael Niedermayer2014-04-01
| | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Nedeljko Babic <nbabic@mips.com>
* | avcodec/ac3: rename identifier used to select the fixed point variantMichael Niedermayer2014-04-01
| | | | | | | | | | | | | | | | the CONFIG_ prefix is used by configure, using it for other things is potentially confusing to the reader Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Nedeljko Babic <nbabic@mips.com>
* | libavcodec: Implementation of AC3 fixedpoint decoderNedeljko Babic2014-04-01
| | | | | | | | | | Signed-off-by: Nedeljko Babic <nbabic@mips.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/ac3_parser: add avpriv_ac3_parse_header2() and use it in libavcodecMichael Niedermayer2014-03-01
| | | | | | | | | | | | | | The new function has the ability to allocate the structure, allowing it to grow without needing major bumps Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '9cd4bc41760f8ad879e248920eacbe1e7757152c'Michael Niedermayer2014-02-16
|\| | | | | | | | | | | | | | | | | | | * commit '9cd4bc41760f8ad879e248920eacbe1e7757152c': ac3dec: set AV_FRAME_DATA_DOWNMIX_INFO side data. Conflicts: libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ac3dec: set AV_FRAME_DATA_DOWNMIX_INFO side data.Tim Walker2014-02-15
| |
* | Merge commit '23d461fe8714a20ee5e6929f22c61512fdda568e'Michael Niedermayer2014-01-30
|\| | | | | | | | | | | | | | | | | | | * commit '23d461fe8714a20ee5e6929f22c61512fdda568e': ac3dec: Allow asymmetric application of DRC when drc_scale > 1 Conflicts: libavcodec/ac3dec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ac3dec: Allow asymmetric application of DRC when drc_scale > 1John Stebbins2014-01-29
| | | | | | | | | | Amplification of quiet sounds is enhanced. Inspired by gbooker's A52Decoder.
* | Merge commit 'ade75fb811500f3e3f284737f123938d83be728f'Michael Niedermayer2014-01-19
|\| | | | | | | | | | | | | * commit 'ade75fb811500f3e3f284737f123938d83be728f': (e)ac3: clip surround mix level indexes. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * (e)ac3: clip surround mix level indexes.Tim Walker2014-01-19
| | | | | | | | Values 0-2 are reserved, 3 (-1.5dB) should be used instead.
* | Merge commit 'c229f571fd3c7d7b567c27c87b2bbcdaee1b0e9f'Michael Niedermayer2014-01-19
|\| | | | | | | | | | | | | * commit 'c229f571fd3c7d7b567c27c87b2bbcdaee1b0e9f': (e)ac3: parse and store the Lt/Rt and LFE mix levels. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * (e)ac3: parse and store the Lt/Rt and LFE mix levels.Tim Walker2014-01-19
| |
* | Merge commit '1f604f96ea70503caa642f68a85be6074a5b3f46'Michael Niedermayer2014-01-19
|\| | | | | | | | | | | | | * commit '1f604f96ea70503caa642f68a85be6074a5b3f46': ac3: set default matrix encoding modes in parse_frame_header. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ac3: set default matrix encoding modes in parse_frame_header.Tim Walker2014-01-19
| | | | | | | | Deduplicates some code.
* | Merge commit '7840c40445c9f52aeccba96de3d27613398bfbf2'Michael Niedermayer2014-01-05
|\| | | | | | | | | | | | | * commit '7840c40445c9f52aeccba96de3d27613398bfbf2': (e)ac3dec: set AV_FRAME_DATA_MATRIXENCODING side data. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * (e)ac3dec: set AV_FRAME_DATA_MATRIXENCODING side data.Tim Walker2014-01-05
| |
* | Merge commit '13345fc1f86fc3615789e196d5a339c1c27c9068'Michael Niedermayer2014-01-05
|\| | | | | | | | | | | | | * commit '13345fc1f86fc3615789e196d5a339c1c27c9068': (e)ac3: parse and store the Dolby Surround, Surround EX and Headphone mode flags. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * (e)ac3: parse and store the Dolby Surround, Surround EX and Headphone mode ↵Tim Walker2014-01-05
| | | | | | | | flags.
* | Merge commit 'c9ca220ef26e36abd22085e6fa156c0dbc43bbf0'Michael Niedermayer2013-12-09
|\| | | | | | | | | | | | | * commit 'c9ca220ef26e36abd22085e6fa156c0dbc43bbf0': ac3dec: make drc_scale exponentially Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ac3dec: make drc_scale exponentiallyJohn Stebbins2013-12-09
| | | | | | | | | | | | | | The a52 spec suggests that "partial compression" should scale the drc value in this manner. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | avcodec/ac3dec: check bap before use.Michael Niedermayer2013-11-25
| | | | | | | | | | | | | | | | | | Fixes out of array read Fixes assertion failure Fixes asan_static-oob_16431c0_8036_rio_bravo_mono_64_spx.ac3 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '48b24bd2d208ce0f124029ac4c5ac5cb1fca4175'Michael Niedermayer2013-11-24
|\| | | | | | | | | | | | | | | | | | | | | * commit '48b24bd2d208ce0f124029ac4c5ac5cb1fca4175': ac3dec: Fix out-of-array read Conflicts: libavcodec/ac3dec.c See: 2cbf27b08a4991de608b305a8600b59467587605 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ac3dec: Fix out-of-array readTim Walker2013-11-23
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | Merge commit 'd4df02131b5522a99a4e6035368484e809706ed5'Michael Niedermayer2013-11-23
|\| | | | | | | | | | | | | * commit 'd4df02131b5522a99a4e6035368484e809706ed5': ac3dec: Remove write-only channel_layout field from AC3DecodeContext Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ac3dec: Remove write-only channel_layout field from AC3DecodeContextTim Walker2013-11-22
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | libavcodec/ac3dec: fix channel_layoutMichael Niedermayer2013-11-23
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'b53285462263ef8a795f0e289abd5799b4c57652'Michael Niedermayer2013-11-23
|\| | | | | | | | | | | | | * commit 'b53285462263ef8a795f0e289abd5799b4c57652': ac3: implement request_channel_layout. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ac3: implement request_channel_layout.Tim Walker2013-11-22
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>