summaryrefslogtreecommitdiff
path: root/libavcodec/ac3dec.c
Commit message (Collapse)AuthorAge
* mov: set channel layout for AC-3 streams based on the 'dac3' atom infoJustin Ruggles2012-02-22
| | | | fixes Bug 225
* dsputil: Add ff_ prefix to the dsputil*_init* functionsMartin Storsjö2012-02-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* ac3dec: Move center and surround mix level tables to the parser.Michael Niedermayer2012-02-09
| | | | | | | | | | | | That way all mix levels as exported by avpriv_ac3_parse_header() will have the same meaning. Previously the 3-bit center mix level for E-AC-3 was used to index in a 4-entry table, leading to out-of-array reads. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> Signed-off-by: Alex Converse <alex.converse@gmail.com>
* lavc: remove disabled FF_API_DRC_SCALE cruft.Anton Khirnov2012-01-27
|
* cosmetics: drop some pointless parenthesesDiego Biurrun2012-01-07
|
* ac3dec: cosmetics: pretty-printingChris Berov2011-12-04
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* 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.
* 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 ff_ac3_parse_header.Anton Khirnov2011-10-20
| | | | It's used in lavf.
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-12
|
* ac3dec: use get_sbits() instead of manually sign-extendingMans Rullgard2011-10-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavc/lavf: use unique private classes.Anton Khirnov2011-10-05
| | | | This is needed by the new AVOptions API.
* ac3dec: actually use drc_scale private optionAnton Khirnov2011-09-21
|
* ac3dec: avoid pointless alloc and indirection for input_bufferReimar Döffinger2011-09-06
| | | | | Since we now always allocate it, it can simply be made part of the context instead.
* ac3dec: add a drc_scale private optionAnton Khirnov2011-07-10
| | | | | | Deprecate corresponding AVCodecContext option. This is the first test of decoder private options.
* 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.
* 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.
* ac3dec: fix processing of delta bit allocation information.Justin Ruggles2011-04-17
| | | | | The number of dba segments is the coded value + 1. The coupling dba offset starts at the first coupling band, not at zero.
* ac3: move ff_ac3_bit_alloc_calc_bap to ac3dspMans Rullgard2011-03-29
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ac3enc: Add codec-specific options for writing AC-3 metadata.Justin Ruggles2011-03-27
|
* 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.
* Detect byte-swapped AC-3 and support decoding it directly.Reimar Döffinger2011-03-22
| | | | | | | This allows the AC-3 decoder to be used directly with RealMedia decoders that unlike the libavformat one do not byte-swap automatically. Since the new code is only used in case we would fail directly otherwise there should be no risk for regressions.
* cosmetics: indentationJustin Ruggles2011-03-22
|
* Always copy input data for AC3 decoder.Justin Ruggles2011-03-22
| | | | | | | Depending on error_recognition is not correct, low values do certainly not mean it is ok to crash. Based on a patch by Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* 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>
* 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>
* cosmetics: indentation and spacingJustin Ruggles2011-01-28
|
* Remove the add bias hack for the C version of DSPContext.float_to_int16_*().Justin Ruggles2011-01-28
|
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-26
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add ff_ prefix to ac3_common_init().Justin Ruggles2011-01-26
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-12
| | | | | | SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix compilation of AC3 decoder if E-AC3 decoder was disabled.Carl Eugen Hoyos2010-05-13
| | | | Originally committed as revision 23131 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ac3dec: return smaller of buf_size and frame_size instead of always returningJustin Ruggles2010-04-22
| | | | | | frame_size. Originally committed as revision 22950 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all remaining occurrences of AVERROR_NOMEM withStefano Sabatini2010-04-03
| | | | | | | | | AVERROR(ENOMEM). AVERROR_NOMEM is deprecated and will be dropped at the next libavutil major bump. Originally committed as revision 22791 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 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
* Simplify error handling by processing header errors separate from CRC andJustin Ruggles2010-01-28
| | | | | | buffer size vs. frame size errors. Originally committed as revision 21519 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only check frame size if the header is valid.Justin Ruggles2010-01-24
| | | | Originally committed as revision 21439 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use MULH instead of 64x64 multiplication, around 5% overall speedup on Intel ↵Reimar Döffinger2010-01-12
| | | | | | | | Atom. Patch by myself and Yuriy Kaminskiy [yumkam mail ru] Originally committed as revision 21175 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ac3dec: apply dynamic range compression to correct channels in dual-mono mode.Justin Ruggles2009-11-14
| | | | Originally committed as revision 20533 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ac3dec: revert r20089. The change was just wrong. 10l for me.Justin Ruggles2009-11-08
| | | | Originally committed as revision 20473 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change an error to a warning to support broken AC-3 files known to exist.Justin Ruggles2009-10-01
| | | | | | Fixes Issue 1426. Originally committed as revision 20110 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l: wrong operation in stereo rematrixingJustin Ruggles2009-09-30
| | | | Originally committed as revision 20106 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify stereo rematrixing by only using one temporary variable. It is alsoJustin Ruggles2009-09-30
| | | | | | about 1.8% faster on my system. Originally committed as revision 20090 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove unneeded assignment in inner loop. rematrixing bands are contiguous.Justin Ruggles2009-09-30
| | | | Originally committed as revision 20089 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rearrange loop structure for approx. 35-50% faster calc_transform_coeffs_cpl()Justin Ruggles2009-09-27
| | | | | | depending on content. Originally committed as revision 20055 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move variable declaration to inside of loop.Justin Ruggles2009-09-27
| | | | Originally committed as revision 20053 to svn://svn.ffmpeg.org/ffmpeg/trunk