summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* h264: move *_samples_available into the per-slice contextAnton Khirnov2015-03-21
|
* h264: move intra4x4_pred_mode[_cache] into the per-slice contextAnton Khirnov2015-03-21
|
* h264: move some neighbour information into the per-slice contextAnton Khirnov2015-03-21
|
* h264: move {chroma,intra16x16}_pred_mode into the per-slice contextAnton Khirnov2015-03-21
|
* h264: move {prev,next}_mb_skipped into the per-slice contextAnton Khirnov2015-03-21
|
* h264: move qp_thresh into the per-slice contextAnton Khirnov2015-03-21
|
* h264: move the quantizers into the per-slice contextAnton Khirnov2015-03-21
|
* h264: do not copy qscale when updating per-thread contextsAnton Khirnov2015-03-21
| | | | It's a per-slice quantity constructed when parsing the slice header.
* h264: split weighted pred-related vars into per-slice contextAnton Khirnov2015-03-21
|
* h264_ps: properly check cropping parameters against overflowAnton Khirnov2015-03-21
| | | | CC: libav-stable@libav.org
* hevc: zero the correct variables on invalid crop parametersAnton Khirnov2015-03-21
| | | | | It's the output_window that is applied to the output frame, not pic_conf_win
* hevc: make the crop sizes unsignedAnton Khirnov2015-03-21
|
* webp: ensure that each transform is only used onceAndreas Cadhalpun2015-03-19
| | | | | | | | | | | According to the WebP Lossless Bitstream Specification "each transform is allowed to be used only once". If a transform is more than once this can lead to memory corruption. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace a few leftover instances of enum PixelFormat with enum AVPixelFormatMartin Storsjö2015-03-17
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* aacsbr: Fix type for index variableVittorio Giovara2015-03-17
| | | | | | Prevents unsigned overflow and variable truncation. Bug-Id: CID 603186
* hqx: Drop unused offsets tableVittorio Giovara2015-03-17
| | | | This is a leftover from the static to dynamic vlc table conversion.
* libx264: Allow full-range yuv422 and yuv444 pixel formatsCarl Eugen Hoyos2015-03-17
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dca: Read params->pancABIT0[param_index] only if part0 is setNiels Möller2015-03-17
| | | | Prevent a spurious read from uninitialized memory.
* x86: Put COPY3_IF_LT under HAVE_6REGSLuca Barbato2015-03-17
| | | | | | | It uses 6 registers, unbreaks building on hardened x86 system. Bug-Id: gentoo/541930 CC: libav-stable@libav.org
* 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.