summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* Merge commit 'd5fda00efa756387cffb4d7294691cd54cfe86cf'Clément Bœsch2017-03-19
|\ | | | | | | | | | | | | * commit 'd5fda00efa756387cffb4d7294691cd54cfe86cf': mpeg4videoenc: Kill non-compiling disabled cruft Merged-by: Clément Bœsch <u@pkh.me>
| * mpeg4videoenc: Kill non-compiling disabled cruftDiego Biurrun2016-08-17
| |
* | Merge commit 'e4d5b55193109d08be47c42d320334546c006b51'Clément Bœsch2017-03-19
|\| | | | | | | | | | | | | * commit 'e4d5b55193109d08be47c42d320334546c006b51': rangecoder: Kill non-compiling disabled cruft Merged-by: Clément Bœsch <u@pkh.me>
| * rangecoder: Kill non-compiling disabled cruftDiego Biurrun2016-08-17
| |
| * vaapi_vc1: Remove redundant version checkMark Thompson2016-08-13
| | | | | | | | | | The lowest supported VAAPI version is 0.34 (checked at configure time), so this test is no longer needed.
| * vaapi_vc1: Constify pointersMark Thompson2016-08-13
| |
| * vaapi_mpeg2: Constify pointersMark Thompson2016-08-13
| |
| * vaapi_h264: Constify pointersMark Thompson2016-08-13
| |
| * vp9: reindent after last commitAnton Khirnov2016-08-11
| |
| * vp9: add frame threadingRonald S. Bultje2016-08-11
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * vp9: allocate 'b', 'block/uvblock' and 'eob/uveob' dynamically.Ronald S. Bultje2016-08-11
| | | | | | | | | | | | This will be needed for frame threading. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * vp9: split last/cur_frame from the reference buffers.Ronald S. Bultje2016-08-11
| | | | | | | | | | | | | | | | | | | | We need more information from last/cur_frame than from reference buffers, so we can use a simplified structure for reference buffers, and then store mvs and segmentation map information in last/cur. This prepares the decoder for frame threading support. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * h264_direct: use the reference mask from the actual referenceAnton Khirnov2016-08-11
| | | | | | | | | | | | | | | | Not from the underlying frame. Fixes races with frame threading in field-coded files, where decoding would wait for the wrong field (e.g. random failures in mixed-nal-coding). Bug-Id: 954
* | Merge commit 'e9bfff1cc66c85b91b262c41e8aa5e8685606225'Clément Bœsch2017-03-18
|\| | | | | | | | | | | | | | | | | | | | | * commit 'e9bfff1cc66c85b91b262c41e8aa5e8685606225': lavc: free buffer_frame/pkt on avcodec_open2() failure This commit is a noop, see 27adf9f9cdbc6f1dc0a1292dc97490eec6f2f068. Only reordered to reduce diff. Merged-by: Clément Bœsch <u@pkh.me>
| * lavc: free buffer_frame/pkt on avcodec_open2() failureAnton Khirnov2016-08-11
| | | | | | | | Fixes memory leaks in some FATE tests.
| * vp9: make mv bounds 32bit.Ronald S. Bultje2016-08-03
| | | | | | | | | | | | | | | | | | The frame dimensions are 16bit, so the mv bounds can easily overflow int16 for large videos. Bug-Id: Handbrake/46 CC: libav-stable@libav.org Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | lavc/avcodec: Constify AVBitStreamFilter* in AVBitStreamFilterContext struct.Carl Eugen Hoyos2017-03-17
| | | | | | | | | | Fixes a gcc warning: libavcodec/bitstream_filter.c:71:20: warning: assignment discards 'const' qualifier from pointer target type
* | avcodec: estimate output bitrate for uncompressed video codecsTobias Rapp2017-03-17
| | | | | | | | | | | | | | | | | | | | | | Allows to get a more realistic total bitrate (and estimated file size) in avi_write_header. Previously a static default value of 200k was assumed. Adds an internal helper function for bitrate guessing. Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/nvenc: allow different const-qps for I, P and B framesKonda Raju2017-03-17
| | | | | | | | Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* | avcodec: fix uninitialized variable readwm42017-03-17
| | | | | | | | | | | | | | This cna happen if the user tries to call the new decode API for subtitles. Fixes CID 1402071.
* | lavc/internal: Constify AVPacket* in AVCodecInternal.Carl Eugen Hoyos2017-03-16
| | | | | | | | | | Fixes a gcc warning: libavcodec/utils.c:2244:26: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
* | lavc/avpacket: Make pkt parameter of av_packet_get_side_data() const.Carl Eugen Hoyos2017-03-16
| | | | | | | | | | Reflects the actual code and silences a gcc warning: libavcodec/utils.c:2102:36: warning: passing argument 1 of 'av_packet_get_side_data' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
* | Merge commit 'e99ecda55082cb9dde8fd349361e169dc383943a'Clément Bœsch2017-03-16
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e99ecda55082cb9dde8fd349361e169dc383943a': checkasm: add vp9 MC tests. vp9mc/x86: sse2 MC assembly. vp9mc/x86: add AVX and AVX2 MC vp9mc/x86: rename ff_* to ff_vp9_* vp9mc/x86: rename ff_avg[48]_sse to ff_avg[48]_mmxext vp9mc/x86: simplify a few inits. vp9mc/x86: add 16px functions (64bit only). Noop (aside from a formatting comment in vp9mc.asm). We already have all of this. We should consider making a final diff between the two projects when the dust comes down. Merged-by: Clément Bœsch <u@pkh.me>
| * vp9mc/x86: sse2 MC assembly.Ronald S. Bultje2016-08-03
| | | | | | | | | | | | | | Also a slight change to the ssse3 code, which prevents a theoretical overflow in the sharp filter. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * vp9mc/x86: add AVX and AVX2 MCJames Almer2016-08-03
| | | | | | | | | | | | | | | | Roughly 25% faster MC than ssse3 for blocksizes 32 and 64. Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * vp9mc/x86: rename ff_* to ff_vp9_*Clément Bœsch2016-08-03
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * vp9mc/x86: rename ff_avg[48]_sse to ff_avg[48]_mmxextJames Almer2016-08-03
| | | | | | | | | | | | | | | | pavgb is an sse integer instruction, so the mmxext flag is enough Signed-off-by: James Almer <jamrial@gmail.com> Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * vp9mc/x86: simplify a few inits.Clément Bœsch2016-08-03
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * vp9mc/x86: add 16px functions (64bit only).Ronald S. Bultje2016-08-03
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit '89466de4aeaf5e359489b81b8a9920a2bc7936d6'Clément Bœsch2017-03-16
|\| | | | | | | | | | | | | | | | | * commit '89466de4aeaf5e359489b81b8a9920a2bc7936d6': vp9/x86: rename vp9dsp to vp9mc File was already renamed, only the top description is updated. Merged-by: Clément Bœsch <u@pkh.me>
| * vp9/x86: rename vp9dsp to vp9mcAnton Khirnov2016-08-03
| | | | | | | | It only contains the MC SIMD, other SIMD will go into different files.
* | avcodec/h264_cabac: Fix runtime error: negation of -2147483648 cannot be ↵Michael Niedermayer2017-03-16
| | | | | | | | | | | | | | | | | | represented in type 'int'; cast to an unsigned type to negate this value to itself Fixes: 858/clusterfuzz-testcase-5168477042114560 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/h264idct_template: fix multiple runtime error: signed integer overflowMichael Niedermayer2017-03-16
| | | | | | | | | | | | | | | | | | Fixes: 857/clusterfuzz-testcase-5319093760557056 Benchmark changes from 335->333 (so if its not a random fluctuation then it would be faster) Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavc/tests/dct/aarch64: add ff_simple_idct_neon testMatthieu Bouron2017-03-16
| |
* | lavc/aarch64: add ff_simple_idct{,_add,_put}_neon functionsMatthieu Bouron2017-03-16
| |
* | Merge commit '89aebc5bcc6e23a0a79c3f51c3a55c3571692ba0'James Almer2017-03-15
|\| | | | | | | | | | | | | * commit '89aebc5bcc6e23a0a79c3f51c3a55c3571692ba0': lavc: align the linesize to 32 when AVX is enabled Merged-by: James Almer <jamrial@gmail.com>
| * lavc: align the linesize to 32 when AVX is enabledAnton Khirnov2016-08-03
| |
* | Merge commit '3c504bc3599f00bfc5923adc114beef34bce11d0'James Almer2017-03-15
|\| | | | | | | | | | | | | * commit '3c504bc3599f00bfc5923adc114beef34bce11d0': x86: deduplicate some constants Merged-by: James Almer <jamrial@gmail.com>
| * x86: deduplicate some constantsChristophe Gisquet2016-08-03
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * h264dec: reset nb_slice_ctx_queued for hwaccel decodingAnton Khirnov2016-08-03
| | | | | | | | | | | | Fixes hwaccel decoding of files with multiple slices. Found-By: Mark Thompson <sw@jkqxz.net>
* | Merge commit '3ccec334b8502701e72ef13bed25913c3578022e'James Almer2017-03-15
|\| | | | | | | | | | | | | * commit '3ccec334b8502701e72ef13bed25913c3578022e': sbrdsp: Move a misplaced #endif directive to the right spot Merged-by: James Almer <jamrial@gmail.com>
| * sbrdsp: Move a misplaced #endif directive to the right spotDiego Biurrun2016-08-03
| |
| * dvbsubdec: Use NULL instead of 0 as pointer valueDiego Biurrun2016-08-03
| |
| * Revert "Don't use expressions with side effects in macro parameters"Martin Storsjö2016-08-02
| | | | | | | | | | | | | | | | | | This reverts commit 25bacd0a0c32ae682e6f411b1ac9020aeaabca72. Since 230b1c070, the bytewise AV_W*() macros only expand their argument once, so revert to the more readable version of these. Signed-off-by: Martin Storsjö <martin@martin.st>
| * Don't use expressions with side effects in macro parametersMartin Storsjö2016-07-31
| | | | | | | | | | | | | | | | | | AV_WB32 can be implemented as a macro that expands its parameters multiple times (in case AV_HAVE_FAST_UNALIGNED isn't set and the compiler doesn't support GCC attributes); make sure not to read multiple times from the source in this case. Signed-off-by: Martin Storsjö <martin@martin.st>
* | avcodec/tiff: Check palette shiftMichael Niedermayer2017-03-16
| | | | | | | | | | | | | | Fixes multiple runtime error: shift exponent 792 is too large for 32-bit type 'unsigned int' Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/wavpack: Fix multiple integer overflowsMichael Niedermayer2017-03-16
| | | | | | | | | | | | | | Fixes: 839/clusterfuzz-testcase-4871084446842880 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/simple_idct_template: Fix several integer overflowsMichael Niedermayer2017-03-16
| | | | | | | | | | | | | | | | | | | | | | Benchmarks with START_TIMER indicate that the code is faster with unsigned, (that is with the patch), there was quite some fluctuation in the numbers so this may be just random Fixes: 811/clusterfuzz-testcase-6465493076541440 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit '7ebdffc353f3f0827864e8e3461fdc00cc243b14'Clément Bœsch2017-03-15
|\| | | | | | | | | | | | | * commit '7ebdffc353f3f0827864e8e3461fdc00cc243b14': dxv: Check to make sure we don't overrun buffers on corrupt inputs Merged-by: Clément Bœsch <u@pkh.me>
| * dxv: Check to make sure we don't overrun buffers on corrupt inputsMartin Storsjö2016-07-31
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>