summaryrefslogtreecommitdiff
path: root/libavcodec/ac3dec.c
Commit message (Collapse)AuthorAge
* (e)ac3dec: set AV_FRAME_DATA_MATRIXENCODING side data.Tim Walker2014-01-05
|
* (e)ac3: parse and store the Dolby Surround, Surround EX and Headphone mode ↵Tim Walker2014-01-05
| | | | flags.
* 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>
* ac3dec: Fix out-of-array readTim Walker2013-11-23
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* ac3dec: Remove write-only channel_layout field from AC3DecodeContextTim Walker2013-11-22
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* ac3: implement request_channel_layout.Tim Walker2013-11-22
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* ac3dec: simplify an expressionTim Walker2013-11-19
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* ac3dec: fix outptr increment.Michael Niedermayer2013-10-28
| | | | | | | | | 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
* lavc: change all decoders to behave consistently with AV_EF_CRCCHECK.Anton Khirnov2013-10-28
| | | | | | Just crccheck prints a warning, crccheck+explode returns an error. Also document this behavior.
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
|
* ac3: Return proper error codesLuca Barbato2013-08-27
|
* ac3: Clean up the error pathsLuca Barbato2013-08-27
|
* fmtconvert: Explicitly use int32_t instead of intChristophe Gisquet2013-07-17
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* ac3dec: Don't consume more data than the actual input packet sizeMartin Storsjö2013-07-15
| | | | | | | | | | | | | | | This was handled properly in the normal return case at the end of the function, but not in this special case. Returning a value larger than the input packet size can cause problems for certain library users. Returning the actual input buffer size unconditionally, since it is not guaranteed that frame_size is set to a sensible value at this point. Cc: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* ac3dec: Consistently use AC3_BLOCK_SIZE and sizeofMartin Storsjö2013-07-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* ac3dec: Increment channel pointers only once per channelMartin Storsjö2013-07-13
| | | | | | | | If the channel mapping map multiple output channels to one input channel, we should only increment the actual pointer once. Cc: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec: av_log_missing_feature(1) ---> avpriv_request_sample()Diego Biurrun2013-03-13
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* ac3dec: validate channel output mode against channel countJustin Ruggles2013-02-23
| | | | | | | Damaged frames can lead to a mismatch, which can cause a segfault due to using an incorrect channel mapping. CC:libav-stable@libav.org
* ac3: decode directly to the user-provided AVFrameJustin Ruggles2013-02-12
|
* ac3dec: fix non-optimal dithering of zero bit mantissasMathias Rauen2013-01-20
| | | | | | Use a noise range of -0.707 to 0.707 instead of -0.5 to 0.5 Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* lavc: Move vector_fmul_window to AVFloatDSPContextJustin Ruggles2013-01-16
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* miscellaneous typo fixesDiego Biurrun2012-12-21
|
* ac3dec: decode directly into output buffersMans Rullgard2012-12-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ac3dec: make downmix() take array of pointers to channel dataMans Rullgard2012-12-09
|
* ac3dec: output planar float onlyMans Rullgard2012-12-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-04
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Use proper return values in case of missing featuresDiego Biurrun2012-10-12
|
* ac3dec: ensure get_buffer() gets a buffer for the correct number of channelsJustin Ruggles2012-10-01
| | | | | | | | | | | If there is an error during frame parsing, but AVCodecContext.channels was changed and AC3DecodeContext.out_channels was set previously, the two may not match. Fixes CVE-2012-2802 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* ac3: move ac3_downmix() from dsputil to ac3dspMans Rullgard2012-09-12
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avopt: Explicitly store float/double option defaults in .dblMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* Replace memset(0) by zero initializations.Diego Biurrun2012-03-28
| | | | Also remove one pointless zero initialization in rangecoder.c.
* 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.