summaryrefslogtreecommitdiff
path: root/libavcodec/dca.c
Commit message (Collapse)AuthorAge
* dca: fix misaligned access in ff_dca_convert_bitstreamAndreas Cadhalpun2016-01-15
| | | | | | | | | | | | The function is used on unaligned buffers (such as those provided by AVPacket), accessing them as uint16_t causes SIGBUS crashes on architectures like SPARC. This fixes ubsan runtime error: load of misaligned address for type 'const uint16_t', which requires 2 byte alignment Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dca: Move syncword definitions to a separate headerDiego Biurrun2015-03-04
|
* dca: K&R formatting cosmeticsGabriel Dume2014-09-16
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* put_bits: Remove unused includesVittorio Giovara2014-03-04
| | | | | This requires adding includes to other files that relied on these being included implicitly.
* dca: Move ff_dca_convert_bitstream() to the DCA common codeDiego Biurrun2013-03-27
| | | | This makes the DCA parser and decoder independent.
* dca: Switch dca_sample_rates to avpriv_ prefix; it is used across libsDiego Biurrun2012-08-01
|
* dca: Move tables used outside of dcadec.c to a separate file.Diego Biurrun2012-08-01
|
* dca: Rename dca.c ---> dcadec.cDiego Biurrun2012-08-01
| | | | This will allow adding dca.c with tables used from other files.
* float_dsp: Move vector_fmac_scalar() from libavcodec to libavutilJustin Ruggles2012-06-18
|
* dca: include libavutil/mathematics.h for possibly missing M_SQRT1_2Kostya Shishkov2012-03-08
|
* dca: don't use av_clip_uintp2().Ronald S. Bultje2012-03-07
| | | | | The argument is not a literal, thus causing the ARM v6 or later builds to break.
* dca: prevent accessing static arrays with invalid indexes.Ronald S. Bultje2012-03-07
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* dca_parser: parse the sample rate and frame durationsJustin Ruggles2012-03-05
|
* dsputil: Add ff_ prefix to the dsputil*_init* functionsMartin Storsjö2012-02-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* dca: K&R formatting cosmeticsShitiz Garg2012-01-03
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* 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.
* dca: Replace oversized unused get_bits() with skip_bits_long().Alex Converse2011-11-27
|
* Make channel layout masks unsignedMans Rullgard2011-11-25
| | | | | | | | | | It makes more sense for a bit mask to use an unsigned type. The change should be source and binary compatible on all supported systems, hence micro version bump. Fixes a few invalid shifts. Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: ARMv6 optimised decode_blockcode()Mans Rullgard2011-11-25
| | | | | | | | | This is a hand-tuned version of the code with impossible parts of the FASTDIV function ommitted. 2-5% faster overall on Cortex-A8. Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: handle errors from dca_decode_block()Justin Ruggles2011-10-29
| | | | | Return error if core block decoding fails. Do not enable XCh if XCh extension block decoding fails.
* dca: return error if the frame header is invalidJustin Ruggles2011-10-29
|
* dca: return proper error codes instead of -1Justin Ruggles2011-10-29
|
* dca: fix signed overflow in shiftMans Rullgard2011-10-08
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: NEON optimised high freq VQ decodingMans Rullgard2011-09-30
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: clear inactive subbands only once in qmf_32_subbands()Mans Rullgard2011-09-29
| | | | | | | | Writing zeros to the high entries in the array need only be done once as the cutoff position is constant throughout the loop. Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: use vector_fmac_scalar from dsputilMans Rullgard2011-09-28
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: set AVCodecContext frame_size for DTS audioJohn Stebbins2011-07-04
| | | | | | | | | | | Set the frame size when decoding DTS audio. This has the side effect of fixing the computation of timestamps for DTS-HD in compute_pkt_fields. Since frame_size is not currently set, the duration of a frame is being guessed based on the streams bitrate. But for DTS-HD, the bitrate currently used is the rate of the DTS core which is much different than the whole DTS-HD stream and leads to a wildly inaccurate frame duration estimate. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cosmetics: fix some then/than typosDiego Biurrun2011-06-30
|
* 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.
* Remove unused variablesMans Rullgard2011-06-02
|
* 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.
* Add AVX FFT implementation.Vitor Sessak2011-04-26
| | | | Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Replace more FFmpeg instances by Libav or ffmpeg.Diego Biurrun2011-04-23
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: use EXT_AUDIO_ID field to determine core extensionsAnssi Hannula2011-02-24
| | | | | | | | | This avoids the core substream extensions scan when the EXT_AUDIO_ID field indicates no extensions or only unsupported extensions. The scan is done only if the value of EXT_AUDIO_ID is unknown or indicates a present XCh extension which we can decode. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Merge libavcore into libavutilReinhard Tartler2011-02-15
| | | | | | | | | | | | It is pretty hopeless that other considerable projects will adopt libavutil alone in other projects. Projects that need small footprint are better off with more specialized libraries such as gnulib or rather just copy the necessary parts that they need. With this in mind, nobody is helped by having libavutil and libavcore split. In order to ease maintenance inside and around FFmpeg and to reduce confusion where to put common code, avcore's functionality is merged (back) to avutil. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Replace remaining occurrences of deprecated CH_* with AV_CH_*Anton Khirnov2011-02-06
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.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>
* dca: avoid C99 declaration in for() expressionGianluigi Tiesi2011-02-01
| | | | 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>
* dca: add profile namesAnssi Hannula2011-01-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: consider a stream with XXCh/X96 in ExSS as DTS-HD HRAAnssi Hannula2011-01-21
| | | | | | | | | | | DTS-HD HRA streams do not always have an XBR extension in the extension substream. Instead they can have only XXCh and X96 extensions in there and still be considered DTS-HD HRA. This is also confirmed with Onkyo TX-SR607 receiver which recognizes such a stream as HiRes Audio. Signed-off-by: Mans Rullgard <mans@mansr.com>
* cosmetics: reindentJustin Ruggles2011-01-18
|
* Add check for changing number of channels in DCA.Daniel Kang2011-01-18
| | | | Fixes issue 2505.
* Fix reading over the end of the allocated buffer.Anssi Hannula2011-01-09
| | | | | | Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 26291 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Export dca profile information.Anssi Hannula2011-01-06
| | | | | | Patch by Anssi Hannula anssi d hannula a iki d fi Originally committed as revision 26250 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Verify FSIZE96 when encountering X96 sync code.Anssi Hannula2011-01-06
| | | | | | Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 26249 to svn://svn.ffmpeg.org/ffmpeg/trunk