summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* libvpxenc: add overshoot-pct optionJames Zern2015-06-10
| | | | | | | balances the presence of undershoot-pct Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Zern <jzern@google.com>
* libvpxenc: add undershoot-pct optionJames Zern2015-06-10
| | | | | | | replaces deprecated rc_buffer_aggressivity Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Zern <jzern@google.com>
* avcodec/pcm-dvd: Fix debug == FF_DEBUG_PICT_INFOMichael Niedermayer2015-06-11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/mpeg4videodec: Mark static table as constMichael Niedermayer2015-06-11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'c0e6b8cab874db97b6818007bc86507c8d213083'Michael Niedermayer2015-06-10
|\ | | | | | | | | | | | | * commit 'c0e6b8cab874db97b6818007bc86507c8d213083': mpegvideo: Mark one function as static Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: Mark one function as staticVittorio Giovara2015-06-10
| |
* | Merge commit 'd1dd0d404c085f4fce7b8358b4aea677761c5d88'Michael Niedermayer2015-06-10
|\| | | | | | | | | | | | | * commit 'd1dd0d404c085f4fce7b8358b4aea677761c5d88': mpegvideo: Move block permutation function where is used Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: Move block permutation function where is usedVittorio Giovara2015-06-10
| | | | | | | | Mark it as static.
* | Merge commit 'c6aa0554b0c3e31fec4580b68ea85b66966cd381'Michael Niedermayer2015-06-10
|\| | | | | | | | | | | | | | | | | | | * commit 'c6aa0554b0c3e31fec4580b68ea85b66966cd381': mpegvideo: Drop release_unused_pictures() function Conflicts: libavcodec/mpegvideo.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: Drop release_unused_pictures() functionVittorio Giovara2015-06-10
| | | | | | | | | | It is only used in one place, and it is small enough that it might be called directly.
* | Merge commit '7061bf0925a7d6c5899bbe710b2b8cdae9005274'Michael Niedermayer2015-06-10
|\| | | | | | | | | | | | | | | | | | | | | * commit '7061bf0925a7d6c5899bbe710b2b8cdae9005274': mpegvideo: Move Picture-related functions to a separate file Conflicts: libavcodec/mpegvideo.c libavcodec/mpegvideo.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: Move Picture-related functions to a separate fileVittorio Giovara2015-06-10
| |
* | avcodec/mips: remove ;;Michael Niedermayer2015-06-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC intra prediction ↵Shivraj Patil2015-06-10
| | | | | | | | | | | | | | | | | | | | functions This patch adds MSA (MIPS-SIMD-Arch) optimizations for HEVC intra predition functions in new file hevcpred_msa.c Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC loop filter and ↵Shivraj Patil2015-06-10
| | | | | | | | | | | | | | | | | | | | | | | | sao functions This patch adds MSA (MIPS-SIMD-Arch) optimizations for HEVC loop filter and sao functions in new file hevc_lpf_sao_msa.c Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h In this patch, in comparision with previous patch, duplicated c functions are removed. Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | takdec: ensure chan2 is a valid channel indexAndreas Cadhalpun2015-06-10
| | | | | | | | | | | | | | | | | | If chan2 is not smaller than the number of channels, it can cause segmentation faults due to dereferencing a NULL pointer. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/h264_slice: Use AVFrame diemensions for grayscale handlingMichael Niedermayer2015-06-10
| | | | | | | | | | | | | | The AVFrame values are closer to the AVFrame bitmap changed instead of the AVCodecContext values, so this should be more robust Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dec: Print the correct variable in the component error messageMichael Niedermayer2015-06-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dec: increase tile_parts to 6Michael Niedermayer2015-06-10
| | | | | | | | | | | | Fixes Ticket4602 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dec: Fix shift for RGB(A)48/64Michael Niedermayer2015-06-10
| | | | | | | | | | Found-by: carl Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sonic: set avctx->channels in sonic_decode_initAndreas Cadhalpun2015-06-09
| | | | | | | | | | | | | | Otherwise it can be 0 in sonic_decode_frame, causing SIGFPE crashes. Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* | avcodec/jpeg2000dec: Fix gain regression with gray16Michael Niedermayer2015-06-09
| | | | | | | | | | Found-by: carl Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/libopenjpegdec: Mark as experimental if <= 1.3Michael Niedermayer2015-06-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000: remove unused variableMichael Niedermayer2015-06-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '210921722bf828b3b895ebcbc34374e6c4452c6f'Michael Niedermayer2015-06-09
|\| | | | | | | | | | | | | | | | | | | | | * commit '210921722bf828b3b895ebcbc34374e6c4452c6f': imc: add required padding for GetBitContext buffer Conflicts: libavcodec/imc.c See: 7444cf9a9c0b8b2bba8198af2823521c654a48f4 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * imc: add required padding for GetBitContext bufferJanne Grunau2015-06-09
| | | | | | | | | | | | | | Fixes stack buffer overflow errors detected by address sanitizer in fate-imc. CC: libav-stable@libav.org
| * ac3_parser: add required padding for GetBitContext bufferJanne Grunau2015-06-09
| | | | | | | | | | | | | | Fixes stack buffer overflow errors detected by address sanitizer in various fate tests. CC: libav-stable@libav.org
| * aac_parser: add required padding for GetBitContext bufferJanne Grunau2015-06-09
| | | | | | | | | | | | | | Fixes stack buffer overflow errors detected by address sanitizer in various fate tests. CC: libav-stable@libav.org
* | avcodec/jpeg2000: Disable special case for JPEG2000_QSTY_SIMichael Niedermayer2015-06-09
| | | | | | | | | | | | | | | | The code gave apparently completely wrong values Fixes Ticket2872 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dec: Add placeholder for PLT parsingMichael Niedermayer2015-06-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dec: Handle Psot = 0Michael Niedermayer2015-06-09
| | | | | | | | | | | | Fixes Ticket2869 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/x86/h264_weight: handle weight1=128Michael Niedermayer2015-06-09
| | | | | | | | | | | | Fix ticket4596 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dec: Fix some 5/3 bitexactness issuesMichael Niedermayer2015-06-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dec: Fix subsampled decodingMichael Niedermayer2015-06-09
| | | | | | | | | | | | Fixes part of Ticket3619 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dec: Check that coords match before applying ICTMichael Niedermayer2015-06-09
| | | | | | | | | | | | This avoid potential out of array accesses Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dec: Fix high bit depth branch sample shiftMichael Niedermayer2015-06-09
| | | | | | | | | | | | Fix part of Ticket3619 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | vp8: change mv_{min,max}.{x,y} type to intAndreas Cadhalpun2015-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If one of the dimensions is larger than 8176, s->mb_width or s->mb_height is larger than 511, leading to an int16_t overflow of s->mv_max.{x,y}. This then causes av_clip to be called with amin > amax. Changing the type to int avoids the overflow and has no negative effect, because s->mv_max is only used in clamp_mv for clipping. Since mv_max.{x,y} is positive and mv_min.{x,y} negative, av_clip can't increase the absolute value. The input to av_clip is an int16_t, and thus the output fits into int16_t as well. For additional safety, s->mv_{min,max}.{x,y} are clipped to int16_t range before use. Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* | Merge commit '925b80d64029d41962e5998d7d901226c3a9baea'Michael Niedermayer2015-06-08
|\| | | | | | | | | | | | | * commit '925b80d64029d41962e5998d7d901226c3a9baea': mpegvideo: Move OutFormat enum to mpegutils.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: Move OutFormat enum to mpegutils.hVittorio Giovara2015-06-08
| | | | | | | | It is necessary to avoid circular header dependencies.
* | Merge commit '9bb11be0e5a75782c3139ad058c2b571499aa37d'Michael Niedermayer2015-06-08
|\| | | | | | | | | | | | | | | | | | | * commit '9bb11be0e5a75782c3139ad058c2b571499aa37d': mpegvideo: Split picture allocation for encoding and decoding Conflicts: libavcodec/mpegvideo.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: Split picture allocation for encoding and decodingVittorio Giovara2015-06-08
| | | | | | | | | | | | | | | | | | The main ff_alloc_picture() function is made more generic with all the parameters necessary as arguments. This will allows to move most of the related functions to a separate file later. Right now wrappers are provided to try and minimize the number of changes in the code.
* | vp9: change type of tile_size from unsigned to int64_tAndreas Cadhalpun2015-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise the check 'tile_size < size' treats a negative size as unsigned, causing the check to pass. This subsequently leads to segmentation faults. This was originally fixed as part of Libav commit 72ca83, so the original author is one of the following developers: Anton Khirnov <anton@khirnov.net> Diego Biurrun <diego@biurrun.de> Luca Barbato <lu_zero@gentoo.org> Martin Storsjö <martin@martin.st> Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* | Merge commit 'f8716a1408f4f4ec63857b7015fbd62f9eac344a'Michael Niedermayer2015-06-08
|\| | | | | | | | | | | | | | | | | | | * commit 'f8716a1408f4f4ec63857b7015fbd62f9eac344a': mpegvideo: Rework frame_size_alloc function Conflicts: libavcodec/mpegvideo.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: Rework frame_size_alloc functionVittorio Giovara2015-06-08
| | | | | | | | | | Use more generic arguments and remove its static attribute since it will be moved to a separate file.
* | Merge commit 'da0c8664b4dc906696803685f7e53ade68594ab8'Michael Niedermayer2015-06-08
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'da0c8664b4dc906696803685f7e53ade68594ab8': mpegvideo: Move various temporary buffers to a separate context Conflicts: libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c libavcodec/mpegvideo_motion.c libavcodec/rv34.c libavcodec/vc1_mc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: Move various temporary buffers to a separate contextVittorio Giovara2015-06-08
| |
* | avcodec/hq_hqa: Fix signness of tagMichael Niedermayer2015-06-08
| | | | | | | | | | | | Fixes Ticket4509 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/apng: Add partial support for blending with PAL8 pixel formatDonny Yang2015-06-08
| | | | | | | | | | | | | | | | | | Currently restricted to blending pixels that only contain either 0 or 255 in their alpha components Signed-off-by: Donny Yang <work@kota.moe> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/apng: Add support for blending with GRAY8A pixel formatDonny Yang2015-06-08
| | | | | | | | | | | | Signed-off-by: Donny Yang <work@kota.moe> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/apng: Add blending support for non-alpha pixel formatsDonny Yang2015-06-08
| | | | | | | | | | | | Signed-off-by: Donny Yang <work@kota.moe> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>