aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
* hevc: check slice address lengthAndreas Cadhalpun2015-07-102-2/+2
| | | | | | | It is used as get_bits argument and reading 0 bits isn't supported. Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avcodec/utils: Document 32 min for h264 widthMichael Niedermayer2015-07-101-0/+5
| | | | | Suggested-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/g2meet: Check R/G/B values in epic_decode_pixel_pred()Michael Niedermayer2015-07-101-0/+5
| | | | | | | Fixes: asan_double-free_d34593_861_smp3.wmv Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* snow: remove an obsolete av_assert2Andreas Cadhalpun2015-07-101-2/+2
| | | | | | | | | | | | | | | | | | | | It asserts that the frame linesize is larger than 37, but it can be smaller and decoding such frames works. Before commit cc884a35 src_stride > 7*MB_SIZE was necessary, because the blocks were interleaved in the tmp buffer and the last block was added with an offset of 6*MB_SIZE. It was changed for src_stride <= 7*MB_SIZE to write the blocks sequentially, hence the larger tmp_step. After that the assert was only necessary to make sure that the buffer remained large enough. Since commit bd2b6b33 s->scratchbuf is used as tmp buffer. As part of commit 86e107a7 the minimal scratchbuf size was increased to 256*7*MB_SIZE, which is enough for any src_stride <= 7*MB_SIZE. Also add a comment explaining the tmp_step calculation. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avcodec/utils: use a minimum 32pixel width in avcodec_align_dimensions2() ↵Michael Niedermayer2015-07-101-1/+3
| | | | | | | | for H.264 Fixes Assertion failure Found-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/motion_est_template: Fix undefined behavior in small_diamond_search()Michael Niedermayer2015-07-101-2/+2
| | | | | | | Fixes: asan_heap-oob_394322e_138_cov_4265020547_CVPCMNL1_SVA_C.264 Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/libopenh264enc: Do not truncate frame rateMichael Niedermayer2015-07-101-1/+1
| | | | | Suggested-by: Gregory J Wolfe <gregory.wolfe@kodakalaris.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '67c884eb07c7e9f2cb72bb8d447d945e5ac8cac7'Michael Niedermayer2015-07-101-0/+2
|\ | | | | | | | | | | | | * commit '67c884eb07c7e9f2cb72bb8d447d945e5ac8cac7': libvpx: Add the library header Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libvpx: Add the library headerVittorio Giovara2015-07-091-0/+2
| | | | | | | | Unbreak make checkheaders
| * lavc: Add nvenc.h to the skipheaderLuca Barbato2015-07-091-0/+1
| | | | | | | | Unbreak make checkheaders
* | libavcodec/qsvenc.c: improving handling for return codes of ↵Ivan Uskov2015-07-101-5/+13
| | | | | | | | | | | | MFXVideoENCODE_EncodeFrameAsync Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpegvideo: Clear pointers in ff_mpv_common_init()Michael Niedermayer2015-07-091-4/+78
| | | | | | | | | | | | | | | | | | This ensures that no stale pointers leak through on any path Fixes: signal_sigsegv_c3097a_991_xtrem_e2_m64q15_a32sxx.3gp Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavcodec/qsvenc.c: Fix for too agressive height alignment during frame ↵Ivan Uskov2015-07-092-4/+7
| | | | | | | | | | | | encoding which may be reason of superflous frame copying. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/qsvenc_hevc: Attempt to fix error: too few arguments to function ↵Michael Niedermayer2015-07-091-1/+1
| | | | | | | | | | | | | | ff_hevc_extract_rbsp Found-by: Ivan Uskov Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavcodec: Implementation of AAC_fixed_decoder (LC-module) [4/4]Jovan Zelincevic2015-07-094-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Build system modified There are several warnings occurring during build after this patch is applied. The cause of most of these warnings is in that some definitions needed here are logical part of sbr module and are added in later patches. When this patches are applied these warnings stop occurring. The only warning that is added here and is not fixed with later patches is warning that warns that type mismatch for table ff_aac_eld_window_480. The reason for this warning is in that ER AAC ELD 480 is not integrated in to the fixed point implementation at this moment and there is no fixed point version of this table. Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavcodec: Implementation of AAC_fixed_decoder (LC-module) [3/4]Djordje Pesut2015-07-095-146/+809
| | | | | | | | | | | | | | Add fixed point implementation Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavcodec: Implementation of AAC_fixed_decoder (LC-module) [2/4]Jovan Zelincevic2015-07-0916-35/+680
| | | | | | | | | | | | | | Add fixed point implementation of functions for generating tables Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavcodec: Implementation of AAC_fixed_decoder (LC-module) [1/4]Jovan Zelincevic2015-07-096-3060/+3136
| | | | | | | | | | | | | | Move existing code to the new template files Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/hevc_ps: Remove gotos from ff_hevc_parse_sps()Michael Niedermayer2015-07-091-50/+29
| | | | | | | | | | | | | | They are currently unnecessary Found-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '66acb76bb0492b263215ca9b4d927a7be39ace02'Michael Niedermayer2015-07-0911-17/+474
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '66acb76bb0492b263215ca9b4d927a7be39ace02': lavc: add Intel libmfx-based HEVC encoder Conflicts: Changelog configure libavcodec/Makefile libavcodec/allcodecs.c libavcodec/qsv.c libavcodec/qsvenc.c libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: add Intel libmfx-based HEVC encoderAnton Khirnov2015-07-0811-16/+473
| |
* | Merge commit '3a85397e8bb477eb34678d9edc52893f57003226'Michael Niedermayer2015-07-094-4/+125
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '3a85397e8bb477eb34678d9edc52893f57003226': lavc: add Intel libmfx-based MPEG2 encoder Conflicts: Changelog configure libavcodec/allcodecs.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: add Intel libmfx-based MPEG2 encoderAnton Khirnov2015-07-084-4/+125
| |
* | Merge commit '69ab9f53f901eac6a649e22d28cf093357870627'Michael Niedermayer2015-07-094-123/+156
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '69ab9f53f901eac6a649e22d28cf093357870627': hevc: split bitstream unescaping to a separate file Conflicts: libavcodec/Makefile libavcodec/hevc.c See: afa93d198aaf2cc661c4df6d4095cd030265d30a Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * hevc: split bitstream unescaping to a separate fileAnton Khirnov2015-07-084-103/+137
| | | | | | | | It will be useful in the QSV HEVC encoder.
* | avcodec/hevc_ps: Do not return success on failures in ff_hevc_parse_sps()Michael Niedermayer2015-07-091-0/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'fd124d8357b1becfde3ac8d5e3320127cf97a5b7'Michael Niedermayer2015-07-093-111/+129
|\| | | | | | | | | | | | | | | | | | | | | * commit 'fd124d8357b1becfde3ac8d5e3320127cf97a5b7': hevc_ps: split the code for parsing the SPS and exporting it into the context Conflicts: libavcodec/hevc.c libavcodec/hevc_ps.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * hevc_ps: split the code for parsing the SPS and exporting it into the contextAnton Khirnov2015-07-083-92/+112
| | | | | | | | | | This will be useful in the later commits, where we want to parse an SPS without having a whole decoding context.
* | avcodev/libdcadec: implement request_channel_layoutJames Almer2015-07-081-0/+33
| | | | | | | | | | Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* | libavcodec/qsvenc.c: fix incorrect loop condition.Ivan Uskov2015-07-091-2/+5
| | | | | | | | | | | | | | | | For example, the encoder may return MFX_WRN_INCOMPATIBLE_VIDEO_PARAM warning i.e. ret==5 old loop implementation will repeat several times until output buffer overflow. New implementation explicitly uses loop only for device busy case. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '1761ab838c75223a6b97d8c0720d09275374c53d'Michael Niedermayer2015-07-095-7/+24
|\| | | | | | | | | | | | | | | | | | | | | * commit '1761ab838c75223a6b97d8c0720d09275374c53d': lavc: Deprecate avctx.rc_strategy Conflicts: libavcodec/mpegvideo.h libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: Deprecate avctx.rc_strategyVittorio Giovara2015-07-085-7/+24
| | | | | | | | | | | | | | Only used by libxvid in ratecontrol module, so move it to a codec private option. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '02b7c630875c0bc63cee5ec597aa33baf9bf4e20'Michael Niedermayer2015-07-091-1/+1
|\| | | | | | | | | | | | | | | | | | | | | * commit '02b7c630875c0bc63cee5ec597aa33baf9bf4e20': h261: Signal freeze picture release for intra frames Conflicts: tests/ref/vsynth/vsynth1-h261 tests/ref/vsynth/vsynth2-h261 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * h261: Signal freeze picture release for intra framesStian Selnes2015-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Freeze picture release should be set to 1 when we're responding to a fast update request. For simplicity we set it for all intra frames, including those that starts a GOP. Fixes issue where Tandberg MXP1700 does not recover from packet loss state since it's waiting for the freeze picture relase indication. Bug-Id: 873 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit 'dc1de0b958836545339611e9c050a1d4fdded263'Michael Niedermayer2015-07-091-2/+2
|\| | | | | | | | | | | | | | | | | | | | | * commit 'dc1de0b958836545339611e9c050a1d4fdded263': h261: Set 'still image mode off' in picture header Conflicts: tests/ref/vsynth/vsynth1-h261 tests/ref/vsynth/vsynth2-h261 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * h261: Set 'still image mode off' in picture headerStian Selnes2015-07-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ref H.261 recommendation section 4.2.1.3, setting the still image flag to 1 disables still image mode. Some decoders require this in order to decode the bitstream as normal video. Fixes H.261 calls to Cisco E20. Also, reserved (aka spare) bits should be set to 1 unless specified otherwise. Bug-Id: 872 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | avcodec/h264_slice: Fix container croppingMichael Niedermayer2015-07-081-1/+4
| | | | | | | | | | | | | | | | Fixes out of array read Fixes: asan_heap-oob_394322e_138_cov_4265020547_CVPCMNL1_SVA_C.264 Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/g2meet: Clear pointers after deallocationMichael Niedermayer2015-07-081-5/+7
| | | | | | | | | | | | | | Fixes double free Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: Check values in apply_param_change()Michael Niedermayer2015-07-081-2/+13
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | videodsp: assert that linesize is larger than widthMichael Niedermayer2015-07-082-0/+4
| | | | | | | | | | Suggested-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | wmalosslessdec: reset frame->nb_samples on packet lossAndreas Cadhalpun2015-07-071-0/+1
| | | | | | | | | | | | | | | | Otherwise a frame with non-zero nb_samples but without any data can be returned. Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* | wmalosslessdec: avoid reading 0 bits with get_bitsAndreas Cadhalpun2015-07-071-1/+1
| | | | | | | | | | Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* | aacenc: fix option descriptionsRostislav Pehlivanov2015-07-071-3/+3
| | | | | | | | | | | | | | | | | | Since the new PNS implementation has been merged and is no longer considered proof of concept (as it's much more complex and better than the previous), change the comments to reflect that. We need people testing it (since all AAC profiles require it to be on by default) and having it tagged as proof of concept might drive some away. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/libdcadec: export matrix encoding side dataJames Almer2015-07-071-0/+21
| | | | | | | | | | Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for idctdsp functionsShivraj Patil2015-07-077-0/+820
| | | | | | | | | | | | | | This patch adds MSA (MIPS-SIMD-Arch) optimizations for idctdsp functions in new file idctdsp_msa.c and simple_idct_msa.c Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavcodec/qsv.c: Linux-only code part has been moved to separate function ↵Ivan Uskov2015-07-071-32/+43
| | | | | | | | | | | | in order to avoid the "ISO C90 forbids mixed declarations and code" compiler warning. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | use mmi instead of loongson3 as simd-optimization flag周晓勇2015-07-073-10/+10
| | | | | | | | | | Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: loongson remove useless macros in mipsfpu optimization周晓勇2015-07-064-16/+2
| | | | | | | | | | | | | | Loongson has disabled all mipsfpu optimization as fate-test faild. Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/lpc: Fix lpc_apply_welch_window_c() for odd lenMichael Niedermayer2015-07-061-4/+10
| | | | | | | | | | | | | | Also removes assert this fixes an assertion failure on non-x86 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for me_cmp functionsShivraj Patil2015-07-066-0/+807
| | | | | | | | | | | | | | This patch adds MSA (MIPS-SIMD-Arch) optimizations for me_cmp functions in new file me_cmp_msa.c Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>