summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* dca: Support for XLL (lossless extension)Niels Möller2015-03-15
| | | | | | Cleanup and integration by Diego Biurrun. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* dca: Mark syncword constants unsigned; they do not fit in 32-bit signed intDiego Biurrun2015-03-13
|
* TDSC decoderVittorio Giovara2015-03-13
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* mjpeg: Mark decoder family as thread safeVittorio Giovara2015-03-13
| | | | | | No global variables are used and the VLC tables are allocated without static elements. This will allow using a JPEG decoding context within other decoders.
* lavc: Introduce AVCodec internal capabilitiesVittorio Giovara2015-03-13
| | | | | | | This field is designed for marking codec properties useful to lavc internals. Two internal capabilities are added: - FF_CODEC_CAP_INIT_THREADSAFE: codec can be opened without locks; - FF_CODEC_CAP_INIT_CLEANUP: codec frees memory if initialization fails.
* lavc: Improve thread locking error messageVittorio Giovara2015-03-13
|
* libx264: Return more meaningful error codesHimangi Saraogi2015-03-12
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libtheora: Check frame allocationVittorio Giovara2015-03-12
|
* mpegvideo_enc: Check AVCodecContext allocationVittorio Giovara2015-03-12
|
* dca: Document the permuted order in the lfe_fir_64 and lfe_fir_128 tablesNiels Möller2015-03-12
|
* roqvideoenc: set enc->avctx in roq_encode_initAndreas Cadhalpun2015-03-11
| | | | | | | | | | | So far it is only set in roq_encode_frame, but it is used in roq_encode_end to free the coded_frame. This currently segfaults if roq_encode_frame is not called between roq_encode_init and roq_encode_end. CC:libav-stable@libav.org Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* qsv: Improve the log message of when initializing MFX_IMPL_HARDWARE{2, 3, 4}Yukinori Yamazoe2015-03-11
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mlpdec: support TrueHD streams with an Atmos substreamHendrik Leppkes2015-03-11
| | | | | | | | | The fourth substream is being discarded, since its not raw audio data, but an encoded Atmos stream which needs a specialized decoder. Fixes decoding of the true hd stream from Transformers\ -\ Age\ of\ Extinction\ 2014\ 1080P-003.mkv Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mlpdec: support major sync headers with optional extension blocksHendrik Leppkes2015-03-11
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* libvpx: Fix mixed use of av_malloc() and av_reallocp()Vittorio Giovara2015-03-09
| | | | | | | | This buffer is resized when vpx_codec_get_cx_data() returns a VPX_CODEC_STATS_PKT packet. CC: libav-stable@libav.org Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* utvideodec: Handle slice_height being zeroMichael Niedermayer2015-03-09
| | | | | | | | | | Fixes out of array accesses. CC: libav-stable@libav.org Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Bug-Id: CVE-2014-9604 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* tiff: Check that there is no aliasing in pixel format selectionAnton Khirnov2015-03-08
| | | | | | | | | Fixes possible issues with unexpected bpp/bppcount values. CC: libav-stable@libav.org Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Bug-Id: CVE-2014-8544 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* vorbis: Check the vlc value in setup_classifsLuca Barbato2015-03-08
| | | | | | | | The valid returned values are always at most 11bit. Remove the previous check that assumed larger values plausible and use a signed integer to check get_vlc2 return values. CC: libav-stable@libav.org
* vorbis: Use a local codebook variableLuca Barbato2015-03-08
| | | | Makes the code a little simpler.
* libopenh264enc: Add support for building with OpenH264 1.4Martin Storsjö2015-03-06
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* h264: remove a now redundant error checkAnton Khirnov2015-03-05
| | | | It was only relevant when data partitioning was in use.
* webp: validate the distance prefix codeAndreas Cadhalpun2015-03-05
| | | | | | | | | | | According to the WebP Lossless Bitstream Specification the highest allowed value for a prefix code is 39. If prefix_code is too large, the calculated extra_bits has an invalid value and triggers an assertion in get_bits. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rv10: check size of s->mb_width * s->mb_heightAndreas Cadhalpun2015-03-05
| | | | | | | If it doesn't fit into 12 bits it triggers an assertion. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* pcxenc: Return more meaningful error codesHimangi Saraogi2015-03-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* aac: Relax reserved_bit validationVittorio Giovara2015-03-04
| | | | | | | | | | | Although the specification mandates this bit to zero, it may happen that software tools incorrectly flip it to one, invalidating a possibly valid stream. Relax this restriction, by failing only when AV_EF_BITSTREAM is set. This behaviour is similar to aac decoders in Firefox and Quicktime. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dca: Move syncword definitions to a separate headerDiego Biurrun2015-03-04
|
* wma.h: #include "avcodec.h"Anton Khirnov2015-03-03
| | | | | | It's required for at least AVCodecContext. Fixes make checkheaders.
* aic: Fix decoding files with odd dimensionsVittorio Giovara2015-03-03
| | | | | | | | | Normally the aic decoder finds the proper slice combination (multiple of some number less than 32) but in case of odd width, it resorts to the default values, which were actually swapped. The number of slices is modified to account for such odd width cases. CC: libav-stable@libav.org
* prores: Extend the padding check to 16bitLuca Barbato2015-03-02
| | | | | | | | | | | Some files produced by the official encoder have up to 16bit of padding instead of the expected padding to the byte. Use a self-explanatory macro instead of a simple number. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avcodec/utils: use correct printf specifier in ff_set_sarAndreas Cadhalpun2015-02-28
| | | | | Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: do not compile fmtconvert unconditionallyAnton Khirnov2015-02-28
| | | | Only ac3dec and dcadec use it.
* fmtconvert: drop unused functionsAnton Khirnov2015-02-28
|
* lavc: remove unused traces of fmtconvert usageAnton Khirnov2015-02-28
| | | | | Those decoders have been switched to float output and so do not use fmtconvert anymore.
* qsv: Skip qsv.h compilation if qsv is not enabledDiego Biurrun2015-02-23
|
* eamad: check for out of bounds readFederico Tomassetti2015-02-23
| | | | | | | Bug-Id: CID 1257500 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mdec: check for out of bounds readFederico Tomassetti2015-02-23
| | | | | | | Bug-Id: CID 1257501 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Canopus HQX decoderVittorio Giovara2015-02-22
| | | | Based on work by Kostya Shishkov <kostya.shishkov@gmail.com>.
* hevc_deblock: Fix compilation with nasmCarl Eugen Hoyos2015-02-22
| | | | | | CC: libav-stable@libav.org Bug-Id: 795 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* libschroedinger: Check memory allocationsVittorio Giovara2015-02-22
|
* mpegaudio_parser: add MP3 ADU headers parserGilles Chanteperdrix2015-02-21
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* h264: initialize H264Context.avctx in init_thread_copyAnton Khirnov2015-02-21
| | | | | This prevents using a wrong (first thread's) AVCodecContext if decoding a frame in the first pass over all threads fails.
* h264: only ref cur_pic in update_thread_context if it is initializedAnton Khirnov2015-02-21
| | | | | It may be empty if the previous thread's decode call did not contain a valid frame.
* libavcodec: Make use of av_clip functionsPeter Meerwald2015-02-21
| | | | | Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libavcodec: Don't use av_cold annotation in twinvq header filePeter Meerwald2015-02-20
| | | | | Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: Add DSS SP decoderOleksij Rempel2015-02-19
| | | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* qsv_api: fix building with libmfx disabledAnton Khirnov2015-02-19
|
* lavc: add an Intel libmfx-based H.264 decoderAnton Khirnov2015-02-19
| | | | | Based on the code by Luca Barbato <lu_zero@gentoo.org> and Yukinori Yamazoe <drocon11@gmail.com>.
* h264_parser: export video format and dimensionsAnton Khirnov2015-02-19
|
* rv40: Return more meaningful error codesHimangi Saraogi2015-02-19
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* libx265: Add crf private optionDerek Buitenhuis2015-02-18
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>