summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
* lavc: remove old unused audio conversion functions.Anton Khirnov2013-10-283-187/+0
|
* ac3dec: fix outptr increment.Michael Niedermayer2013-10-281-1/+1
| | | | | | | | | 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: don't set AVFrame.pts to random numbers in decoders.Anton Khirnov2013-10-283-10/+0
|
* g722dec: Change bits_per_codeword to the right option typeMartin Storsjö2013-10-281-1/+1
| | | | | | | This isn't a set of flags but just a plain integer in the range 6-8. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: disable CRC checking by defaultAnton Khirnov2013-10-281-1/+1
|
* lavc: change all decoders to behave consistently with AV_EF_CRCCHECK.Anton Khirnov2013-10-286-7/+24
| | | | | | Just crccheck prints a warning, crccheck+explode returns an error. Also document this behavior.
* error resilience: check error_concealment, not err_recognition.Anton Khirnov2013-10-281-3/+3
| | | | | err_recognition is supposed to trigger detecting and reporting errors, not trying to fix them.
* h263: Check init_get_bits return valueMichael Niedermayer2013-10-281-6/+11
| | | | | | | And use init_get_bits8 to check for integer overflows while at it. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* h263: Return meaningful errorsLuca Barbato2013-10-281-21/+30
|
* h264_ps: when parsing a VUI fails, only abort when explode is setAnton Khirnov2013-10-271-2/+4
| | | | | | A VUI doesn't contain anything strictly necessary for decoding. Apparently there are many samples with truncated VUIs in the wild, this commit should allow decoding them.
* mmvideo: fix uninitialized variable use in mm_decode_intraVittorio Giovara2013-10-271-1/+2
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* fft-test: add a missing #includeAnton Khirnov2013-10-261-0/+1
| | | | stdio.h needed for printf since 7177df90a043bd59e172843fc7cb9e767080ea12
* aacdec: Fix calls to avpriv_report_missing_feature().Alex Converse2013-10-251-6/+6
| | | | It does not take log level as an argument.
* fft-test: Remove possibility of returning restricted exit codeDerek Buitenhuis2013-10-251-1/+4
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* dct-test: Remove possibility of returning a restricted exit codeDerek Buitenhuis2013-10-251-1/+4
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* golomb: reduce scope of a few variablesVittorio Giovara2013-10-241-12/+6
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* golomb: K&R formatting cosmeticsVittorio Giovara2013-10-231-136/+178
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h263: K&R formatting cosmeticsLuca Barbato2013-10-231-322/+361
| | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpegvideo: Drop a faulty assertLuca Barbato2013-10-231-2/+6
| | | | | | | That check is easily reachable by faulty input. CC:libav-stable@libav.org Reported-by: Torsten Sadowski <tsadowski@gmx.net>
* aac: Add support for Enhanced AAC Low Delay (ER AAC ELD).Alex Converse2013-10-235-35/+660
| | | | | This does not include support for LD SBR, epTool, data resilience, nor the 960 transform family.
* aacdec: Use avpriv_report_missing_feature() instead of custom logging.Alex Converse2013-10-231-10/+9
|
* h264_parser: Use ff_h264_reset_sei()Yusuke Nakamura2013-10-221-5/+2
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* h264_parser: Fix order of operationsMichael Niedermayer2013-10-221-1/+1
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* pthread: Avoid spurious wakeupsBen Jackson2013-10-211-2/+7
| | | | | | | | | | | | | | | pthread_wait_cond can wake up unexpectedly (Wikipedia: Spurious_wakeup). The FF_THREAD_SLICE thread mechanism could spontaneously execute jobs or allow the caller of avctx->execute to return before all jobs were complete. Test both cases to ensure the wakeup is real. Signed-off-by: Ben Jackson <ben@ben.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegvideo: Move 8x8 in a separate functionLuca Barbato2013-10-151-65/+79
|
* mpegvideo: Move obmc in a separate functionLuca Barbato2013-10-151-76/+88
|
* ffv1: Assume bitdepth 0 means 8bitLuca Barbato2013-10-151-0/+1
| | | | | CC: libav-stable@libav.org Reported-by: debian/726189
* mpegvideo: K&R formatting cosmeticsLuca Barbato2013-10-151-449/+516
|
* lavc: Convert some remaining strides to ptrdiff_tRonald S. Bultje2013-10-1510-21/+25
|
* h264_parser: Fix POC parsing for the case where MMCO_RESET is present.Yusuke Nakamura2013-10-153-47/+154
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264_parser: Fix POC parsing for the case where MMCO_RESET is absent.Yusuke Nakamura2013-10-151-2/+12
| | | | | | | The prev_ values were not set after parsing POC. Increase length of the buffer decoded to parse enough safely. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* bitstream: Check the result of av_malloc()Diego Biurrun2013-10-151-0/+2
|
* cavs: more K&R formatting cosmeticsDiego Biurrun2013-10-151-45/+44
|
* mpegaudio_tablegen: Don't use llrintDerek Buitenhuis2013-10-151-1/+2
| | | | | | | | You cannot count on it being present on all systems, and you cannot include libm.h in a host tool, so just hard code a baseline implementation. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* cos_tablegen: Don't use lrintDerek Buitenhuis2013-10-151-4/+9
| | | | | | | | You cannot count on it being present on all systems, and you cannot include libm.h in a host tool, so just hard code a baseline implementation. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* tablegen: Don't use cbrtf in host toolsDerek Buitenhuis2013-10-152-3/+6
| | | | | | | | You cannot count on them being present on all systems, and you cannot include libm.h in a host tool, so just hard code baseline implementations. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* tableprint: Fix use of a size_t print with MSVCDerek Buitenhuis2013-10-151-2/+12
| | | | | | | %zu was introduced in C99, so MSVC has its own way to handle it, namely %Iu. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* cavs: Check for negative cbpLuca Barbato2013-10-131-3/+3
| | | | | | Sample-Id: 00000647-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* cavs: Return meaningful error valuesLuca Barbato2013-10-131-10/+10
|
* cavs: K&R formatting cosmeticsLuca Barbato2013-10-131-191/+225
|
* pthread: Fix deadlock during thread initializationDerek Buitenhuis2013-10-131-1/+2
| | | | | | | | | | Sometimes, if pthread_create() failed, then pthread_cond_wait() could accidentally be called in the worker threads after the uninit function had already called pthread_cond_broadcast(), leading to a deadlock. Don't call pthread_cond_wait() if c->done is set. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* indeo4: Check the inherited quant_matLuca Barbato2013-10-131-6/+12
| | | | | | | | Invalidate it if not supported. Sample-Id: 00000262-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* indeo4: Check the block size if reusing the band configurationLuca Barbato2013-10-131-0/+8
| | | | | | | Sample-Id: 00000287-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* lavc doxy: extend/clarify avcodec_decode_audio4() doxyAnton Khirnov2013-10-121-6/+18
| | | | Elaborate on flushing the decoder.
* lavc doxy: remove false statements about alignment requirements.Anton Khirnov2013-10-121-10/+0
| | | | The packet data does not need to be aligned.
* prores: Reject negative run and level valuesLuca Barbato2013-10-101-0/+4
| | | | | | | Sample-Id: 00000611-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* shorten: Fix out-of-array readTim Walker2013-10-101-1/+1
| | | | | | pred_order == FF_ARRAY_ELEMS(fixed_coeffs) is invalid too. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* atrac3: Better name for IMDCT window initializationMaxim Poliakovski2013-10-101-2/+2
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* atrac3: Remove unused gain compensation tablesMaxim Poliakovski2013-10-101-10/+0
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* prores: Error out only on surely incomplete ac_coeffsLuca Barbato2013-10-101-1/+1
|