summaryrefslogtreecommitdiff
path: root/libavcodec/eac3dec.c
Commit message (Collapse)AuthorAge
* eac3dec: fix scalingChristophe Gisquet2015-03-14
| | | | | | | | | | | | | This is the remaining error, the output on the SPX samples, respectively csi_miami_stereo_128_spx.eac3 and csi_miami_5.1_256_spx.eac3, goes from: stddev: 8.71 PSNR: 77.52 MAXDIFF: 235 stddev:24270.51 PSNR: 22.17 MAXDIFF:47166 to: stddev: 0.12 PSNR:114.12 MAXDIFF: 1 stddev: 0.12 PSNR:114.73 MAXDIFF: 1 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ac3dec_fixed: always use the USE_FIXED=1 variant of the AC3DecodeContextAndreas Cadhalpun2015-03-14
| | | | | | | | | | | | | | | | | | | The AC3DecodeContext has a float (USE_FIXED=0) and an integer (USE_FIXED=1) variant, both of which can be present in the same binary. This is not only very confusing, but it also breaks horribly, when one variant is used by code expecting the other. This currently happens, because eac3dec.c is only compiled for the float variant, but also used from ac3dec_fixed.c, which uses the integer variant. The result is memory corruption, leading to crashes. So compile eac3dec.c once for each variant and adapt it, so that it works with the integer variant. A loss of precission and scaling bug has been fixed by the committer 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 remote-tracking branch 'qatar/master'Michael Niedermayer2014-01-19
|\| | | | | | | | | | | | | * qatar/master: eac3: cosmetics, re-indent. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * eac3: cosmetics, re-indent.Tim Walker2014-01-19
| |
* | 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 '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 remote-tracking branch 'qatar/master'Michael Niedermayer2013-03-14
|\| | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: avcodec: av_log_missing_feature(1) ---> avpriv_request_sample() Conflicts: libavcodec/aacsbr.c libavcodec/amrnbdec.c libavcodec/takdec.c libavcodec/tta.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avcodec: av_log_missing_feature(1) ---> avpriv_request_sample()Diego Biurrun2013-03-13
| |
| * miscellaneous typo fixesDiego Biurrun2012-12-21
| |
* | Merge commit '8b8899ac3233b4f7af83ded0dc032fad8902d714'Michael Niedermayer2012-10-23
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8b8899ac3233b4f7af83ded0dc032fad8902d714': fate: Declare avcodec/avformat deps in the respective Makefile snippets fate: Add dependencies for WMA and WavPack tests Improve wording and spelling of av_log_missing_feature messages. lavu: remove disabled FF_API_AV_FIFO_PEEK cruft Conflicts: libavcodec/aacsbr.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Improve wording and spelling of av_log_missing_feature messages.Diego Biurrun2012-10-23
| |
* | Merge commit '0a7005bebd23ade7bb852bce0401af1a8fdbb723'Michael Niedermayer2012-10-13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0a7005bebd23ade7bb852bce0401af1a8fdbb723': rtpdec_xiph: fix function return type smjpeg: fix type of 'ret' variable in smjpeg_read_packet() mpegvideo: remove write-only variable Use proper return values in case of missing features fate: add avstring test rangecoder-test: Set error message log level to error, instead of debug Conflicts: libavcodec/aacdec.c libavcodec/amrnbdec.c libavcodec/mpegvideo.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Use proper return values in case of missing featuresDiego Biurrun2012-10-12
| |
* | cosmetics: fix some typosLou Logan2012-03-13
| | | | | | | | | | | | | | | | | | | | Patch attached. From 2d4094fc0dcb4ccd0735eb7e1719e228ebb56bb9 Mon Sep 17 00:00:00 2001 From: Lou Logan <lou@lrcd.com> Date: Mon, 12 Mar 2012 14:13:44 -0800 Subject: [PATCH] cosmetics: fix some typos Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-02-10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (26 commits) eac3dec: replace undefined 1<<31 with INT32_MIN in noise generation yadif: specify array size outside DECLARE_ALIGNED prores: specify array size outside DECLARE_ALIGNED brackets. WavPack demuxer: set packet duration tta: use skip_bits_long() mxfdec: Ignore the last entry in Avid's index table segments mxfdec: Sanity-check SampleRate mxfdec: Handle small EditUnitByteCount mxfdec: Consider OPAtom files that do not have exactly one EC to be OP1a mxfdec: Don't crash in mxf_packet_timestamps() if current_edit_unit overflows mxfdec: Zero nb_ptses in mxf_compute_ptses_fake_index() mxfdec: Sanity check PreviousPartition mxfdec: Never seek back in local sets and KLVs mxfdec: Move the current_partition check inside mxf_read_header() mxfdec: Fix infinite loop in mxf_packet_timestamps() mxfdec: Check eof_reached in mxf_read_local_tags() mxfdec: Check for NULL component mxfdec: Make sure mxf->nb_index_tables > 0 in mxf_packet_timestamps() mxfdec: Make sure x < index_table->nb_ptses build: Add missing directories to DIRS declarations. ... Conflicts: doc/build_system.txt doc/fate.texi libavfilter/x86/yadif_template.c libavformat/mxfdec.c libavutil/Makefile tests/fate/audio.mak tests/fate/prores.mak tests/fate/screen.mak tests/fate/video.mak tests/ref/fate/bethsoft-vid tests/ref/fate/cscd tests/ref/fate/dfa4 tests/ref/fate/nuv tests/ref/fate/vp8-sign-bias tests/ref/fate/wmv8-drm tests/ref/lavf/gxf Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * eac3dec: replace undefined 1<<31 with INT32_MIN in noise generationJanne Grunau2012-02-09
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-07-20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: Remove h264_lowres_idct_put/add functions Remove snow/dwt test program h264: remove some disabled code Fix incorrect max_lowres values matroskadec: fix integer underflow if header length < probe length. cosmetics: indentation eac3enc: use frame exponent strategy when applicable. cosmetics: rename eac3dec_data.c/h to eac3_data.c/h since the tables will also be used in the E-AC-3 encoder. dsputil: fix ff_check_alignment() Conflicts: libavcodec/Makefile libavcodec/h264idct_template.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cosmetics: rename eac3dec_data.c/h to eac3_data.c/h since the tables will alsoJustin Ruggles2011-07-19
| | | | | | | | be used in the E-AC-3 encoder.
* | Merge remote-tracking branch 'newdev/master'Michael Niedermayer2011-03-26
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * newdev/master: mov: set audio service type for AC-3 from bitstream mode in the 'dac3' atom. Get audio_service_type for AC-3 based on bitstream mode in the AC-3 parser and decoder, and vice-versa for the AC-3 encoder. Use audio_service_type to set stream disposition. Add APIchanges entry for audio_service_type. Add audio_service_type field to AVCodecContext for encoding and reporting of the service type in the audio bitstream. configure: in check_ld, place new -l flags before existing ones support @heading, @subheading, @subsubheading, and @subsubsection in texi2pod.pl doc: update build system documentation aacenc: indentation aacenc: fix the side calculation in search_for_ms vp8.c: rename EDGE_* to VP8_EDGE_*. Conflicts: doc/APIchanges libavcodec/avcodec.h libavcodec/version.h libavcodec/vp8.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Get audio_service_type for AC-3 based on bitstream mode in the AC-3 parserJustin Ruggles2011-03-25
| | | | | | | | and decoder, and vice-versa for the AC-3 encoder.
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
|/ | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add spectral extension to the E-AC-3 decoder.Carl Eugen Hoyos2010-03-30
| | | | | | | Original patch by Justin, updated and resubmitted by Christophe Gisquet, christophe D gisquet A gmail Originally committed as revision 22734 to svn://svn.ffmpeg.org/ffmpeg/trunk
* refactoring: properly separate AC-3 and E-AC-3 codeDiego Biurrun2009-07-23
| | | | Originally committed as revision 19501 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename ff_log_missing_feature() to av_log_missing_feature().Ronald S. Bultje2009-06-29
| | | | Originally committed as revision 19294 to svn://svn.ffmpeg.org/ffmpeg/trunk
* eac3dec: get rid of unnecessary left shifts in 16-bit * 24-bitJustin Ruggles2009-05-25
| | | | | | multiplication in GAQ mantissa ramapping. Originally committed as revision 18941 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l: typing mistake in r18888Justin Ruggles2009-05-21
| | | | Originally committed as revision 18890 to svn://svn.ffmpeg.org/ffmpeg/trunk
* eac3dec: fix bug in GAQ dequantization. large mantissas should only beJustin Ruggles2009-05-21
| | | | | | decoded when the gain value is 2 or 4. Originally committed as revision 18889 to svn://svn.ffmpeg.org/ffmpeg/trunk
* eac3dec: make GAQ dequantization 24-bitJustin Ruggles2009-05-21
| | | | Originally committed as revision 18888 to svn://svn.ffmpeg.org/ffmpeg/trunk
* eac3dec: revert commit r18860. keep the AHT IDCT 24-bit. will make AHT GAQJustin Ruggles2009-05-21
| | | | | | dequantization 24-bit in a separate commit. Originally committed as revision 18887 to svn://svn.ffmpeg.org/ffmpeg/trunk
* eac3dec: use 16-bit pre-mantissas instead of 24-bit in AHT decoding. it isJustin Ruggles2009-05-17
| | | | | | simpler and also fixes a bug in GAQ dequantization. Originally committed as revision 18860 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add documentation about missing E-AC-3 features.Justin Ruggles2009-03-17
| | | | Originally committed as revision 18021 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorise enum of AC3 error types to be usable by AAC in the ADTS patch thatAlex Converse2009-01-07
| | | | | | | | will follow Patch by Alex Converse ( alex converse gmail com ) Originally committed as revision 16479 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make av_log_missing_feature an internal function, and change its nameStefano Sabatini2008-12-08
| | | | | | to ff_log_missing_feature. Originally committed as revision 16037 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ac3dec: add missing feature log message for block start infoJustin Ruggles2008-12-06
| | | | Originally committed as revision 16020 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ac3dec: use skip_bits_long() for block start bitsJustin Ruggles2008-12-06
| | | | Originally committed as revision 16019 to svn://svn.ffmpeg.org/ffmpeg/trunk
* revert r15812 (E-AC-3 Spectral Extension) pending further reviewJustin Ruggles2008-11-13
| | | | Originally committed as revision 15818 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add support for spectral extensionJustin Ruggles2008-11-13
| | | | Originally committed as revision 15812 to svn://svn.ffmpeg.org/ffmpeg/trunk
* simplify code and comment regarding determination whether or not AHT is used.Justin Ruggles2008-08-31
| | | | Originally committed as revision 15101 to svn://svn.ffmpeg.org/ffmpeg/trunk
* use correct table nameJustin Ruggles2008-08-31
| | | | Originally committed as revision 15099 to svn://svn.ffmpeg.org/ffmpeg/trunk
* skip converter exponent strategy for all channels at onceJustin Ruggles2008-08-31
| | | | Originally committed as revision 15092 to svn://svn.ffmpeg.org/ffmpeg/trunk
* merge declaration and init. variable is not used outside the loop.Justin Ruggles2008-08-31
| | | | Originally committed as revision 15090 to svn://svn.ffmpeg.org/ffmpeg/trunk
* commit more OKed parts of the E-AC-3 decoderJustin Ruggles2008-08-30
| | | | Originally committed as revision 15067 to svn://svn.ffmpeg.org/ffmpeg/trunk