summaryrefslogtreecommitdiff
path: root/libavcodec/alsdec.c
Commit message (Collapse)AuthorAge
* 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
|
* alsdec: fix misplaced parentheses.Clément Bœsch2012-09-17
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* alsdec: check return values.Thilo Borgmann2012-09-17
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* alsdec: fix number of decoded samples in first sub-block in BGMC mode.Thilo Borgmann2012-09-17
| | | | | | | | Fixes CVE-2012-2790 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* alsdec: Fix out of ltp_gain_values read.Thilo Borgmann2012-09-17
| | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* alsdec: Check that quantized parcor coeffs are within range.Michael Niedermayer2012-09-17
| | | | | | | | | | | ALS spec: 11.6.3.1.1 Quantization and encoding of parcor coefficients ... In all cases the resulting quantized values ak are restricted to the range [-64,63]. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* alsdec: check opt_order.Michael Niedermayer2012-09-17
| | | | | | | | | | | Fixes out of array write in quant_cof. Also make sure no invalid opt_order stays in the context. Fixes CVE-2012-2775 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* alsdec: Check k used for rice decoder.Michael Niedermayer2012-09-17
| | | | | | | Values that fail this check will cause failure of decode_rice() Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* alsdec: remove dead assignmentsMans Rullgard2012-07-01
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* cosmetics: Align codec declarationsMartin Storsjö2012-04-06
| | | | | | | Also break some long lines, remove codec function placeholder comments and add spaces in sample/pixel format lists. Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace memset(0) by zero initializations.Diego Biurrun2012-03-28
| | | | Also remove one pointless zero initialization in rangecoder.c.
* alsdec: do not set AVCodecContext.frame_sizeJustin Ruggles2012-03-05
| | | | It is not necessary
* als: prevent infinite loop in zero_remaining().Ronald S. Bultje2012-02-17
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* dsputil: Add ff_ prefix to the dsputil*_init* functionsMartin Storsjö2012-02-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Remove extra newlines at EOFAlex Converse2012-01-27
|
* latmdec: fix audio specific config parsingJanne Grunau2011-12-03
| | | | | | | | | Pass the correct size in bits to mpeg4audio_get_config and add a flag to disable parsing of the sync extension when the size is not known. Latm with AudioMuxVersion 0 does not specify the size of the audio specific config. Data after the audio specific config can be misinterpreted as sync extension resulting in random and wrong configs.
* 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 some mpeg4audio symbols used in lavf.Anton Khirnov2011-10-20
| | | | | Specifically, ff_mpeg4audio_sample_rates, ff_mpeg4audio_get_config and ff_copy_pce_data
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-29
| | | | It's more readable and less prone to breakage.
* 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.
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | 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 dprintf with av_dlogLuca Barbato2011-01-29
| | | | dprintf clashes with POSIX.1-2008
* Fix memory leak in ALS decoder in big endian systemsVitor Sessak2011-01-29
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* 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>
* alsdec: Correct the ALS decoder by storing some parameters per-channel ratherSprezz2010-12-06
| | | | | | than just per-block. Patch by Sprezz [sprezzatura gmx com]. Fixes Issue 2387. Originally committed as revision 25898 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 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
* Reindent after last commit.Thilo Borgmann2010-11-08
| | | | Originally committed as revision 25711 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow clean initialization of lut_status array by changing type to signed int.Thilo Borgmann2010-11-08
| | | | Originally committed as revision 25710 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove usage of deprecated libavcodec/audioconvert.h functions.Stefano Sabatini2010-11-03
| | | | Originally committed as revision 25668 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix spelling in comment(s)Reinhard Tartler2010-08-07
| | | | Originally committed as revision 24737 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_ prefix to bswap macrosMåns Rullgård2010-07-10
| | | | Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Grammar fixesMåns Rullgård2010-07-02
| | | | Originally committed as revision 23961 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix grammar errors in documentationMåns Rullgård2010-06-30
| | | | Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add CRC check to the ALS decoder.Thilo Borgmann2010-06-29
| | | | Originally committed as revision 23889 to svn://svn.ffmpeg.org/ffmpeg/trunk
* alsdec: convert VLAs to fixed sizeMåns Rullgård2010-06-26
| | | | | | | The maximum value of sub_blocks is 8, a safe size to always allocate on stack. Originally committed as revision 23797 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 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
* Fix last frame block size correction.Thilo Borgmann2010-03-06
| | | | Originally committed as revision 22238 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do sequential bit reading outside of []-operators.Thilo Borgmann2010-02-19
| | | | Originally committed as revision 21892 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix sizeof()-statement to use the actual pointer type.Thilo Borgmann2010-02-17
| | | | Originally committed as revision 21872 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix wrong buffer allocation for MCC in ALS.Thilo Borgmann2010-02-17
| | | | Originally committed as revision 21871 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Limit the Rice parameter used for progressive decoding in ALS.Thilo Borgmann2010-02-16
| | | | Originally committed as revision 21849 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent a line.Thilo Borgmann2010-02-13
| | | | Originally committed as revision 21810 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support arithmetic decoding in ALS.Thilo Borgmann2010-02-13
| | | | Originally committed as revision 21799 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unnecessary fields in ALSSpecificConfig.Thilo Borgmann2010-02-01
| | | | Originally committed as revision 21583 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after last commit.Thilo Borgmann2010-01-12
| | | | Originally committed as revision 21171 to svn://svn.ffmpeg.org/ffmpeg/trunk