summaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
* h264: move non_zero_count_cache into the per-slice contextAnton Khirnov2015-03-2110-107/+124
|
* h264: move *_samples_available into the per-slice contextAnton Khirnov2015-03-217-48/+51
|
* h264: move intra4x4_pred_mode[_cache] into the per-slice contextAnton Khirnov2015-03-218-64/+71
|
* h264: move some neighbour information into the per-slice contextAnton Khirnov2015-03-219-144/+156
|
* h264: move {chroma,intra16x16}_pred_mode into the per-slice contextAnton Khirnov2015-03-216-26/+26
|
* h264: move {prev,next}_mb_skipped into the per-slice contextAnton Khirnov2015-03-214-10/+10
|
* h264: move qp_thresh into the per-slice contextAnton Khirnov2015-03-212-6/+5
|
* h264: move the quantizers into the per-slice contextAnton Khirnov2015-03-2111-120/+145
|
* h264: do not copy qscale when updating per-thread contextsAnton Khirnov2015-03-211-2/+0
| | | | It's a per-slice quantity constructed when parsing the slice header.
* h264: split weighted pred-related vars into per-slice contextAnton Khirnov2015-03-2111-159/+214
|
* h264_ps: properly check cropping parameters against overflowAnton Khirnov2015-03-211-4/+16
| | | | CC: libav-stable@libav.org
* hevc: zero the correct variables on invalid crop parametersAnton Khirnov2015-03-211-4/+4
| | | | | It's the output_window that is applied to the output frame, not pic_conf_win
* hevc: make the crop sizes unsignedAnton Khirnov2015-03-211-4/+4
|
* webp: ensure that each transform is only used onceAndreas Cadhalpun2015-03-191-1/+9
| | | | | | | | | | | 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-171-2/+2
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* aacsbr: Fix type for index variableVittorio Giovara2015-03-171-3/+3
| | | | | | Prevents unsigned overflow and variable truncation. Bug-Id: CID 603186
* hqx: Drop unused offsets tableVittorio Giovara2015-03-171-4/+0
| | | | This is a leftover from the static to dynamic vlc table conversion.
* libx264: Allow full-range yuv422 and yuv444 pixel formatsCarl Eugen Hoyos2015-03-171-0/+6
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dca: Read params->pancABIT0[param_index] only if part0 is setNiels Möller2015-03-171-1/+1
| | | | Prevent a spurious read from uninitialized memory.
* x86: Put COPY3_IF_LT under HAVE_6REGSLuca Barbato2015-03-171-0/+5
| | | | | | | 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-158-32/+1716
| | | | | | 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-131-12/+12
|
* TDSC decoderVittorio Giovara2015-03-136-1/+638
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* mjpeg: Mark decoder family as thread safeVittorio Giovara2015-03-135-0/+10
| | | | | | 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-133-1/+21
| | | | | | | 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-131-1/+4
|
* libx264: Return more meaningful error codesHimangi Saraogi2015-03-121-3/+3
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libtheora: Check frame allocationVittorio Giovara2015-03-121-0/+2
|
* mpegvideo_enc: Check AVCodecContext allocationVittorio Giovara2015-03-121-0/+2
|
* dca: Document the permuted order in the lfe_fir_64 and lfe_fir_128 tablesNiels Möller2015-03-121-1/+27
|
* roqvideoenc: set enc->avctx in roq_encode_initAndreas Cadhalpun2015-03-111-0/+2
| | | | | | | | | | | 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-111-3/+10
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mlpdec: support TrueHD streams with an Atmos substreamHendrik Leppkes2015-03-112-2/+4
| | | | | | | | | 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-113-6/+31
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* libvpx: Fix mixed use of av_malloc() and av_reallocp()Vittorio Giovara2015-03-091-4/+4
| | | | | | | | 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-091-0/+4
| | | | | | | | | | 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-081-0/+8
| | | | | | | | | 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-081-16/+14
| | | | | | | | 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-081-3/+4
| | | | Makes the code a little simpler.
* libopenh264enc: Add support for building with OpenH264 1.4Martin Storsjö2015-03-061-0/+8
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* h264: remove a now redundant error checkAnton Khirnov2015-03-051-6/+0
| | | | It was only relevant when data partitioning was in use.
* webp: validate the distance prefix codeAndreas Cadhalpun2015-03-051-0/+5
| | | | | | | | | | | 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-053-4/+13
| | | | | | | 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-041-5/+5
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* aac: Relax reserved_bit validationVittorio Giovara2015-03-041-1/+2
| | | | | | | | | | | 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-045-21/+52
|
* wma.h: #include "avcodec.h"Anton Khirnov2015-03-031-0/+1
| | | | | | It's required for at least AVCodecContext. Fixes make checkheaders.
* aic: Fix decoding files with odd dimensionsVittorio Giovara2015-03-031-2/+2
| | | | | | | | | 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-021-2/+3
| | | | | | | | | | | 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-281-1/+1
| | | | | Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
OpenPOWER on IntegriCloud