summaryrefslogtreecommitdiff
path: root/libavcodec/ac3dec.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit '7c6eb0a1b7bf1aac7f033a7ec6d8cacc3b5c2615'Michael Niedermayer2015-07-271-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-271-2/+2
| | | | | | | | | | | | 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-261-2/+2
| | | | | | | | | | | | 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-171-1/+1
| | | | | | | | | | Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/ac3dec: Fix undefined shiftsMichael Niedermayer2015-03-151-4/+3
| | | | | | | | | | | | Found-by: Clang -fsanitize=shift Reported-by: Thierry Foucu <tfoucu@google.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ac3dec: cosmeticsChristophe Gisquet2015-03-141-5/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ac3_fixed: fix computation of spx_noise_blendChristophe Gisquet2015-03-141-1/+1
| | | | | | | | | | | | 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-141-1/+1
| | | | | | | | | | | | Should also improve decoding, but actually doesn't... Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '7f9f771eac0d37a632e0ed9bd89961d57fcfb7e0'Michael Niedermayer2015-02-141-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-141-1/+1
| |
* | avcodec/ac3dec: use init_get_bits8()Paul B Mahol2015-02-041-1/+2
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/ac3dec: Use avpriv_float_dsp_alloc()Michael Niedermayer2014-11-201-5/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Improved AC3 decoder level support (heavy drc, dialnorm)Jean-Francois Thibert2014-08-271-10/+35
| | | | | | | | | | | | | | | | | | 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-231-2/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-221-2/+4
| |
* | avcodec/ac3dec: use av_freep() for safteyMichael Niedermayer2014-04-021-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/ac3dec: avoid #if, use if() instead, its cleaner and shorterMichael Niedermayer2014-04-011-3/+2
| | | | | | | | | | 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-011-11/+11
| | | | | | | | | | | | | | | | 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-011-91/+106
| | | | | | | | | | 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-011-2/+2
| | | | | | | | | | | | | | 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-161-0/+38
|\ \ | |/ | | | | | | | | | | | | | | | | * 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-151-0/+38
| |
* | Merge commit '23d461fe8714a20ee5e6929f22c61512fdda568e'Michael Niedermayer2014-01-301-3/+8
|\ \ | |/ | | | | | | | | | | | | | | | | * 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-291-3/+8
| | | | | | | | | | Amplification of quiet sounds is enhanced. Inspired by gbooker's A52Decoder.
* | Merge commit 'ade75fb811500f3e3f284737f123938d83be728f'Michael Niedermayer2014-01-191-2/+2
|\ \ | |/ | | | | | | | | | | * 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-191-2/+2
| | | | | | | | Values 0-2 are reserved, 3 (-1.5dB) should be used instead.
* | Merge commit 'c229f571fd3c7d7b567c27c87b2bbcdaee1b0e9f'Michael Niedermayer2014-01-191-4/+12
|\ \ | |/ | | | | | | | | | | * 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-191-4/+12
| |
* | Merge commit '1f604f96ea70503caa642f68a85be6074a5b3f46'Michael Niedermayer2014-01-191-4/+2
|\ \ | |/ | | | | | | | | | | * 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-191-4/+2
| | | | | | | | Deduplicates some code.
* | Merge commit '7840c40445c9f52aeccba96de3d27613398bfbf2'Michael Niedermayer2014-01-051-0/+30
|\ \ | |/ | | | | | | | | | | * 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-051-0/+30
| |
* | Merge commit '13345fc1f86fc3615789e196d5a339c1c27c9068'Michael Niedermayer2014-01-051-6/+22
|\ \ | |/ | | | | | | | | | | * 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-051-6/+22
| | | | | | | | flags.
* | Merge commit 'c9ca220ef26e36abd22085e6fa156c0dbc43bbf0'Michael Niedermayer2013-12-091-2/+2
|\ \ | |/ | | | | | | | | | | * commit 'c9ca220ef26e36abd22085e6fa156c0dbc43bbf0': ac3dec: make drc_scale exponentially Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ac3dec: make drc_scale exponentiallyJohn Stebbins2013-12-091-2/+2
| | | | | | | | | | | | | | 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-251-0/+4
| | | | | | | | | | | | | | | | | | 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-241-4/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | * 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-231-2/+3
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | Merge commit 'd4df02131b5522a99a4e6035368484e809706ed5'Michael Niedermayer2013-11-231-1/+0
|\ \ | |/ | | | | | | | | | | * 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-221-1/+0
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | libavcodec/ac3dec: fix channel_layoutMichael Niedermayer2013-11-231-1/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'b53285462263ef8a795f0e289abd5799b4c57652'Michael Niedermayer2013-11-231-10/+24
|\ \ | |/ | | | | | | | | | | * commit 'b53285462263ef8a795f0e289abd5799b4c57652': ac3: implement request_channel_layout. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ac3: implement request_channel_layout.Tim Walker2013-11-221-10/+24
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | Merge commit 'ffb0af7f17eb0da86e9b140e86a1404d3c6c9e79'Michael Niedermayer2013-11-201-3/+2
|\ \ | |/ | | | | | | | | | | * commit 'ffb0af7f17eb0da86e9b140e86a1404d3c6c9e79': ac3dec: simplify an expression Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ac3dec: simplify an expressionTim Walker2013-11-191-3/+2
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * ac3dec: fix outptr increment.Michael Niedermayer2013-10-281-1/+1
| | | | | | | | | | | | | | | | | | Fixes corrupt data errors when downmixing in the AC-3 decoder. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> CC:libav-stable@libav.org
* | Merge commit '23a211cbba0b7c9ee694040031b2e5da1be54a00'Michael Niedermayer2013-10-281-0/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | * commit '23a211cbba0b7c9ee694040031b2e5da1be54a00': lavc: change all decoders to behave consistently with AV_EF_CRCCHECK. Conflicts: libavcodec/avcodec.h libavcodec/tta.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: change all decoders to behave consistently with AV_EF_CRCCHECK.Anton Khirnov2013-10-281-0/+2
| | | | | | | | | | | | Just crccheck prints a warning, crccheck+explode returns an error. Also document this behavior.
* | Merge commit 'b2bed9325dbd6be0da1d91ffed3f513c40274fd2'Michael Niedermayer2013-10-041-2/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b2bed9325dbd6be0da1d91ffed3f513c40274fd2': cosmetics: Group .name and .long_name together in codec/format declarations Conflicts: libavcodec/8svx.c libavcodec/alac.c libavcodec/cljr.c libavcodec/dnxhddec.c libavcodec/dnxhdenc.c libavcodec/dpxenc.c libavcodec/dvdec.c libavcodec/dvdsubdec.c libavcodec/dvdsubenc.c libavcodec/ffv1dec.c libavcodec/flacdec.c libavcodec/flvdec.c libavcodec/fraps.c libavcodec/frwu.c libavcodec/g726.c libavcodec/gif.c libavcodec/gifdec.c libavcodec/h261dec.c libavcodec/h263dec.c libavcodec/iff.c libavcodec/imc.c libavcodec/libopencore-amr.c libavcodec/libopenjpegdec.c libavcodec/libopenjpegenc.c libavcodec/libspeexenc.c libavcodec/libvo-amrwbenc.c libavcodec/libvorbisenc.c libavcodec/libvpxenc.c libavcodec/libx264.c libavcodec/libxavs.c libavcodec/libxvid.c libavcodec/ljpegenc.c libavcodec/mjpegbdec.c libavcodec/mjpegdec.c libavcodec/mpeg12dec.c libavcodec/mpeg4videodec.c libavcodec/msmpeg4dec.c libavcodec/pgssubdec.c libavcodec/pngdec.c libavcodec/pngenc.c libavcodec/proresdec_lgpl.c libavcodec/proresenc_kostya.c libavcodec/ra144enc.c libavcodec/rawdec.c libavcodec/rv10.c libavcodec/sp5xdec.c libavcodec/takdec.c libavcodec/tta.c libavcodec/v210dec.c libavcodec/vp6.c libavcodec/wavpack.c libavcodec/xbmenc.c libavcodec/yop.c Merged-by: Michael Niedermayer <michaelni@gmx.at>