summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* h264: fully check cropping amount from spsVittorio Giovara2014-08-26
| | | | | Even if sps.crop is true, the cropping amount may be zero. Fixes a sample with a valid but broken container cropping.
* libxvid: K&R formatting cosmeticsGabriel Dume2014-08-26
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* vc1: Fix the skip conditionLuca Barbato2014-08-26
| | | | | As written in the comment above, skip must be added only if a start code is found.
* rv34: use ff_mpeg_update_thread_context only when decoder is fully initializedJanne Grunau2014-08-22
| | | | | | | | | | | | | MpegEncContext based decoders are only fully initialized after the first ff_thread_get_buffer() call. The RV30/40 decoders may fail before a frame buffer was requested. ff_mpeg_update_thread_context() fails on half initialized MpegEncContexts. Since this can only happen before a the first frame was decoded there is no need to call ff_mpeg_update_thread_context(). Based on patches by John Stebbins and tested by John Stebbins. CC: libav-stable@libav.org
* mpeg12enc: Add missing #include for PICT_FRAMEDiego Biurrun2014-08-21
|
* error_resilience: Drop asserts from guess_mv()Diego Biurrun2014-08-21
| | | | | The asserts check struct members that are not referenced in guess_mv() and one of them fails to compile.
* pcm: Drop av_unused attribute from variable that is always usedDiego Biurrun2014-08-19
|
* pcm: Drop unused variable from DECODE_PLANAR macroDiego Biurrun2014-08-19
|
* vc1: Add missing parentheses to conditions in vc1_decode_b_mb_intfr()Diego Biurrun2014-08-19
|
* proresenc: Properly account for alpha planeChristophe Gisquet2014-08-18
| | | | | | | | | | The packet buffer allocation considers the alpha channel as DCT-coded, while it is actually run-coded and thus requires a larger buffer. CC: libav-stable@libav.org Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* proresenc: Realloc if buffer is too smallChristophe Gisquet2014-08-18
| | | | | | | | | | | | | | The buffer allocation may be incorrect (e.g. with an alpha plane), and currently causes the buffer to be set to NULL by init_put_bits, causing a crash later on. So, detect that situation, and if detected, reallocate the buffer and ask for a sample that shows the problem. CC: libav-stable@libav.org Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* proresenc: Report buffer overflowChristophe Gisquet2014-08-18
| | | | | | | | | | If the allocated size, despite best efforts, is too small, exit with the appropriate error. CC: libav-stable@libav.org Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* proresenc: Remove unneeded parameters from encode_alpha_plane()Christophe Gisquet2014-08-18
| | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* tiff: Return proper error for missing LZMA compressionDiego Elio Pettenò2014-08-18
| | | | | | | | The LZMA support is a semi-official extension supported by libtiff 4.0.0 and later. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* cosmetics: Write NULL pointer inequality checks more compactlyGabriel Dume2014-08-15
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-15
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* build: Add explanatory comments to (optimization) blocks in the MakefilesDiego Biurrun2014-08-15
|
* mpegvideo: cosmetics: Lowercase ugly uppercase MPV_ function name prefixesDiego Biurrun2014-08-15
|
* h261dec: Fix order of initializationJohn Stebbins2014-08-14
| | | | | ff_MPV_common_init requires the frame dimensions which get parsed in h261_decode_picture_header.
* h263dec: Fix order of initializationJohn Stebbins2014-08-14
| | | | | ff_MPV_common_init requires the frame dimensions which get parsed in *_decode_picture_header.
* idct: remove call to ff_idctdsp_init from ff_MPV_common_initJohn Stebbins2014-08-14
| | | | | One step in untangling the mpegvideo code and fixing some problems in the order that initialization is being done in h263dec and h261dec.
* mpeg4video: Fix doxygen comment syntax to document correct struct memberNidhi Makhijani2014-08-14
| | | | | | Also fix some comment typos. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* vaapi: set the scaling list correctly.Edgar Hucek2014-08-14
| | | | | | | | Fixes VAAPI decoding artefacts. CC:libav-stable@libav.org Signed-off-by: Anton Khirnov <anton@khirnov.net>
* ffv1dec: check that global parameters do not change in version 0/1Michael Niedermayer2014-08-12
| | | | | | | | | Such changes are neither allowed nor supported Found-by: ami_stuff Bug-Id: CVE-2013-7020 CC: libav-stable@libav.org Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc_mvs: avoid deriving tmvp in amvpChristophe Gisquet2014-08-12
| | | | | | | | Reduces the number of calls to tmvp derivation from 933685 to 586271 on a sequence. Reviewed-by: Mickaël Raulet <mraulet@insa-rennes.fr> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc: wait proper position for tmvpChristophe Gisquet2014-08-12
| | | | | | | | | The position is either rounded or not checked, so delay the wait to check the proper value. Reviewed-by: Mickaël Raulet <mraulet@insa-rennes.fr> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc: use intreadwriteChristophe Gisquet2014-08-12
| | | | | | When dealing with MVs, both components may be processed at a time. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc: derive partial merge listChristophe Gisquet2014-08-12
| | | | | | The merge list only needs to be derived up to the merge index. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc: derive partially amvp listChristophe Gisquet2014-08-12
| | | | | | When the candidate has been found, no need to derive others. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc: simplify roundingChristophe Gisquet2014-08-12
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc: reorder loopsChristophe Gisquet2014-08-12
| | | | | | iterate over memory in a more continuous order Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avcodec: Postpone FF_IDCT_XVIDMMX removal until the next version bumpDiego Biurrun2014-08-10
|
* lavc: drop the av_fast_{re,m}alloc compatibility wrappersAnton Khirnov2014-08-10
| | | | They were only needed until the bump.
* tiff: Improve grayscale supportDiego Elio Pettenò2014-08-10
| | | | | | | | | | Only use PAL8 if palette is present, else use GRAY8 for pixfmt. Instead of simulating a grayscale palette, use real grayscale pixels, if no palette is actually defined. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavc: remove obsolete and disabled avpriv functionsAnton Khirnov2014-08-09
|
* Remove obsolete FF_API_AVFRAME_COLORSPACE cruft.Anton Khirnov2014-08-09
|
* Bump major versions of all libraries.Anton Khirnov2014-08-09
|
* Postpone API-incompatible changes until the next bump.Anton Khirnov2014-08-09
|
* hevc_filter: avoid excessive calls to ff_hevc_get_ref_list()Anton Khirnov2014-08-09
| | | | | | | | 1) each of the loops run within a single CTB, so the relevant reference list is constant 2) when that CTB is, or lies on the same slice as, the current one, we can use a simple access instead of a relatively expensive call to ff_hevc_get_ref_list()
* hevc_refs: drop the handling of negative coordinates in ff_hevc_get_ref_list()Anton Khirnov2014-08-09
| | | | | It makes no sense and cannot happen in any place from which this function is called.
* hevc_filter: move some conditions out of loopsAnton Khirnov2014-08-09
|
* hevc: deobfuscate slice/tile boundary handling for DBFAnton Khirnov2014-08-09
| | | | | Use named constants instead of magic numbers, avoid using variables with inverse meaning from what their name implies.
* hevc_filter: drop more redundant checksAnton Khirnov2014-08-09
| | | | The if() around those loops ensures this condition is always false.
* hevc_filter: drop redundant checksAnton Khirnov2014-08-09
| | | | | ff_hevc_deblocking_boundary_strengths() is never called if the deblocking filter is disabled for the slice.
* hevc: calculate the dbf strength in hls_pcm_sample() only if dbf is enabledAnton Khirnov2014-08-09
|
* avcodec: Rename xvidmmx IDCT to xvidDiego Biurrun2014-08-08
| | | | The Xvid IDCT is not MMX-specific.
* xvididct: Ensure that the scantable permutation is always set correctlyDiego Biurrun2014-08-08
| | | | | This fixes cases where the scantable permuation would get overwritten by the general idctdsp initialization.
* idct: cosmetics: Drop one unnecessary if-block levelDiego Biurrun2014-08-08
|
* avcodec: Undeprecate reordered_opaqueDiego Biurrun2014-08-07
| | | | | | | It allows attaching other external, opaque data to the frame and passing it through the reordering process, for cases when the caller wants other data than just the plain packet pts. There is no way to cleanly achieve this without the field.
* h264: fix interpretation of interleved stereo modesFelix Abecassis2014-08-07
| | | | | | Column and row frame packing arrangements were inverted. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>