summaryrefslogtreecommitdiffstats
path: root/libavcodec/dca.c
Commit message (Collapse)AuthorAgeFilesLines
* dca: fix misaligned access in ff_dca_convert_bitstreamAndreas Cadhalpun2016-01-151-4/+5
| | | | | | | | | | | | 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-041-5/+6
|
* dca: K&R formatting cosmeticsGabriel Dume2014-09-161-2/+1
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* put_bits: Remove unused includesVittorio Giovara2014-03-041-1/+3
| | | | | 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-271-0/+37
| | | | This makes the DCA parser and decoder independent.
* dca: Switch dca_sample_rates to avpriv_ prefix; it is used across libsDiego Biurrun2012-08-011-1/+1
|
* dca: Move tables used outside of dcadec.c to a separate file.Diego Biurrun2012-08-011-0/+29
|
* dca: Rename dca.c ---> dcadec.cDiego Biurrun2012-08-011-1971/+0
| | | | This will allow adding dca.c with tables used from other files.
* float_dsp: Move vector_fmac_scalar() from libavcodec to libavutilJustin Ruggles2012-06-181-4/+5
|
* dca: include libavutil/mathematics.h for possibly missing M_SQRT1_2Kostya Shishkov2012-03-081-0/+1
|
* dca: don't use av_clip_uintp2().Ronald S. Bultje2012-03-071-1/+1
| | | | | 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-071-11/+26
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* dca_parser: parse the sample rate and frame durationsJustin Ruggles2012-03-051-44/+3
|
* dsputil: Add ff_ prefix to the dsputil*_init* functionsMartin Storsjö2012-02-151-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* dca: K&R formatting cosmeticsShitiz Garg2012-01-031-257/+289
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Add avcodec_decode_audio4().Justin Ruggles2011-12-021-12/+20
| | | | | | 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-271-2/+2
|
* Make channel layout masks unsignedMans Rullgard2011-11-251-1/+1
| | | | | | | | | | 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-251-10/+17
| | | | | | | | | 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-291-2/+8
| | | | | 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-291-4/+3
|
* dca: return proper error codes instead of -1Justin Ruggles2011-10-291-24/+25
|
* dca: fix signed overflow in shiftMans Rullgard2011-10-081-1/+2
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: NEON optimised high freq VQ decodingMans Rullgard2011-09-301-8/+19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: clear inactive subbands only once in qmf_32_subbands()Mans Rullgard2011-09-291-2/+3
| | | | | | | | 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-281-5/+2
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: set AVCodecContext frame_size for DTS audioJohn Stebbins2011-07-041-0/+1
| | | | | | | | | | | 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-301-1/+1
|
* Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().Justin Ruggles2011-06-201-1/+1
| | | | av_get_bits_per_sample_fmt() is deprecated.
* Remove unused variablesMans Rullgard2011-06-021-4/+2
|
* Add floating-point sample format support to the ac3, eac3, dca, aac, and vorbisJustin Ruggles2011-05-181-7/+27
| | | | | | decoders. Based on patches by clsid2 in ffdshow-tryout.
* Add AVX FFT implementation.Vitor Sessak2011-04-261-5/+5
| | | | Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Replace more FFmpeg instances by Libav or ffmpeg.Diego Biurrun2011-04-231-1/+1
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: use EXT_AUDIO_ID field to determine core extensionsAnssi Hannula2011-02-241-20/+49
| | | | | | | | | 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-151-1/+1
| | | | | | | | | | | | 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-061-2/+2
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Separate format conversion DSP functions from DSPContext.Justin Ruggles2011-02-021-2/+5
| | | | | | | 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-011-1/+3
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove unneeded add bias from 3 functions.Justin Ruggles2011-01-311-2/+2
| | | | | | | | 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-281-7/+6
|
* Remove the add bias hack for the C version of DSPContext.float_to_int16_*().Justin Ruggles2011-01-281-28/+19
|
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-261-1/+1
| | | | | | | 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-211-0/+10
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: consider a stream with XXCh/X96 in ExSS as DTS-HD HRAAnssi Hannula2011-01-211-5/+2
| | | | | | | | | | | 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-181-1/+1
|
* Add check for changing number of channels in DCA.Daniel Kang2011-01-181-0/+9
| | | | Fixes issue 2505.
* Fix reading over the end of the allocated buffer.Anssi Hannula2011-01-091-1/+15
| | | | | | 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-061-3/+351
| | | | | | 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-061-3/+9
| | | | | | Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 26249 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud