aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/nvenc: only unregister input resources when absolutely neededTimo Rothenpieler2019-04-271-8/+5
| | | | | | | | | | | | This reverts nvenc to old behaviour, which in some super rare edge cases performs better. The implication of this is that any potential API user who relies on nvenc cleaning up every frames device resources after it's done using them will have to change their usage pattern. That should not be a problem, since pretty much every normal usage pattern automatically implies that surfaces are reused from a common pool, since constant re-allocation is also very expensive.
* lavf/hls: Remove HLSContext.strict_std_compliance fieldJun Zhao2019-04-271-3/+1
| | | | | | | After the commit 9f61abc8111, we can use AVFormatContext.strict_std_compliance instead of HLSContext.strict_std_compliance to avoid the code redundancy. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* x86/opusdsp: replace loads with shufflesLynne2019-04-261-6/+3
| | | | | | | | Has a slight speedup. Can't be carried over to aarch64, since it has no shufps-like instruction. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter: add audio soft clip filterPaul B Mahol2019-04-276-1/+318
|
* avfilter/vf_stack: use time_base from framesyncPaul B Mahol2019-04-261-3/+4
| | | | Fixes non-monotonous timestamps.
* avcodec/gdv: Check input palette size before rescale()Michael Niedermayer2019-04-261-2/+2
| | | | | | | | | Fixes: Timeout (22sec -> 11sec) Fixes: 13576/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_GDV_fuzzer-5681024577568768 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/af_astats: count number of NaNs/Infs/denormals for floating-point ↵Paul B Mahol2019-04-262-6/+86
| | | | audio too
* lavfi/opencl: add more opencl helper macroRuiling Song2019-04-261-0/+38
| | | | Signed-off-by: Ruiling Song <ruiling.song@intel.com>
* avcodec/jpeg2000dec: Fix return type of get_plt()Michael Niedermayer2019-04-251-1/+1
| | | | | Found-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/jpeg2000dec: Check PLT data somewhatMichael Niedermayer2019-04-251-1/+7
| | | | | | | | Fixes: Timeout (21sec -> 0.6sec) Fixes: 14134/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5768371078955008 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/jpeg2000dec: Replace the step_x/y assert by a check in the CPRL case ↵Michael Niedermayer2019-04-251-1/+4
| | | | | | | | | | as with the PCRL case Fixes: assertion failure Fixes: 14246/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5758393601490944 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/jpeg2000: Check stepsize before using itMichael Niedermayer2019-04-251-0/+5
| | | | | | | | | Fixes: value 1.87633e+10 is outside the range of representable values of type 'int' Fixes: Undefined behavior Fixes: 14246/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5758393601490944 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/qtrle: Check how much of the chunk is available before decodingMichael Niedermayer2019-04-251-2/+5
| | | | | | | | Fixes: Timeout (10sec -> 2sec) Fixes: 13979/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QTRLE_fuzzer-5635157718990848 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/aacdec_fixed: Fix undefined shift in noise_scale()Michael Niedermayer2019-04-251-1/+1
| | | | | | | Fixes: 13655/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_FIXED_fuzzer-5120559430500352 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/bintext: Add error message when resolution is too small for font.Nikolas Bowe2019-04-251-1/+3
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/zmbv: optimize motion compensation with memcpy()Michael Niedermayer2019-04-251-0/+8
| | | | | | | | | Fixes: Timeout (16 sec - 7 sec) Fixes: 14237/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ZMBV_fuzzer-5693453897302016 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavfi/frei0r: Fix a union member type and remove an unneeded cast.Carl Eugen Hoyos2019-04-251-2/+2
|
* avcodec/h264_ps: use get_se_golomb_long() to parse some sps fieldsJames Almer2019-04-241-3/+3
| | | | | | All three may be up to 32 bits wide. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/h264_ps: fix storage size for offset_for_ref_frameJames Almer2019-04-241-1/+1
| | | | | | | The spec defines the valid range of values to be INT32_MIN + 1 to INT32_MAX, inclusive. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/af_surround: improve rear channels separationPaul B Mahol2019-04-241-10/+10
|
* avfilter/af_surround: check for invalid magnitude and phase differencePaul B Mahol2019-04-241-0/+3
|
* avfilter/af_surround: add angle optionPaul B Mahol2019-04-242-0/+29
|
* avfilter/af_surround: fix typoPaul B Mahol2019-04-241-1/+1
|
* avcodec/arbc: Try to correct keyframe/frame typeMichael Niedermayer2019-04-241-12/+19
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/arbc: Skip unchanged framesMichael Niedermayer2019-04-241-1/+1
| | | | | | | | Fixes: Timeout (16sec -> 5sec) Fixes: 14128/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ARBC_fuzzer-5767365721063424 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avutil/avstring: Fix bug and undefined behavior in av_strncasecmp()Michael Niedermayer2019-04-241-2/+3
| | | | | | | | | The function in case of n=0 would read more bytes than 0. The end pointer could be beyond the allocated space, which is undefined. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mov: Skip stsd adjustment without chunksMichael Niedermayer2019-04-241-0/+2
| | | | | | | | | Fixes: Assertion failure Fixes: clusterfuzz-testcase-minimized-media_pipeline_integration_fuzzer-5683096400822272 Found-by: Clusterfuzz Reported-by: Dan Sanders <sandersd@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/aadec: Check for scanf() failureMichael Niedermayer2019-04-241-1/+6
| | | | | | | | Fixes: use of uninitialized variables Fixes: blank.aa Found-by: Chamal De Silva <chamal.desilva@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dxtory: Check slice_size against minimum in dxtory_decode_v2()Michael Niedermayer2019-04-241-2/+8
| | | | | | | | Fixes: Timeout (33sec -> 16 milli sec) Fixes: 14181/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DXTORY_fuzzer-5681840708386816 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dsicinvideo: check the amount decoded by cin_decode_huffman()Michael Niedermayer2019-04-241-1/+4
| | | | | | | | | | | Fixes: Timeout (158sec -> 36sec) Fixes: 14214/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DSICINVIDEO_fuzzer-5633569034076160 This is untested with valid cin files as none of the files i found cover the changed codepath Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/agm: Check that there is available input in read_code()Michael Niedermayer2019-04-241-0/+3
| | | | | | | | Fixes: Timeout (46sec -> 7ms) Fixes: 14030/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AGM_fuzzer-5721258760601600 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tests/fate-run: New variable hostexecsuf for local fate tools.Carl Eugen Hoyos2019-04-242-4/+5
| | | | Allows running fate in-tree on wsl with msvc.
* compat/windows/makedef: Allow building shared libs with MSVC under WSLCyber Sinh2019-04-241-2/+2
| | | | A similar patch was posted by Gilles Khouzam in his blog.
* avdevice/alsa: fix indefinite stop on closing PCM captureTakayuki 'January June' Suwa2019-04-231-2/+4
| | | | | | | Fixes: https://bugs.archlinux.org/task/58619 Found-by: Elias (Bleuzen) https://bugs.archlinux.org/user/26956 Signed-off-by: Nicolas George <george@nsup.org>
* libavformat/mov: limit nb_frames_for_fps to INT_MAXDan Sanders2019-04-231-2/+2
| | | | | | It's this or add overflow detection in mov_read_header(). Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/af_surround: export more channel's in/out gainsPaul B Mahol2019-04-232-0/+112
|
* avfilter/af_surround: switch to activatePaul B Mahol2019-04-231-42/+65
|
* avfilter/af_surround: expose window size to userPaul B Mahol2019-04-232-1/+6
|
* avfilter/af_surround: add 6.1/6.0 upmix from stereoPaul B Mahol2019-04-231-0/+100
|
* avcodec/cuviddec: improve progressive frame detectionSergey Svechnikov2019-04-231-0/+6
| | | | | | | | | | | | | There are 2 types of problems when using adaptive deinterlace with cuvid: 1. Sometimes, in the middle of transcoding, cuvid outputs frames with visible horizontal lines (as though weave deinterlace method was chosen); 2. Occasionally, on scene changes, cuvid outputs a wrong frame, which should have been shown several seconds before (as if the frame was assigned some wrong PTS value). The reason is that sometimes CUVIDPARSERDISPINFO has property progressive_frame equal to 1 with interlaced videos. In order to fix the problem we should check if the video is interlaced or progressive in the beginning of a video sequence (cuvid_handle_video_sequence). And then we just use this information instead of the property progressive_frame in CUVIDPARSERDISPINFO (which is unreliable). Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* examples/avio_reading: Use avio_context_free() to free AVIOContextJun Zhao2019-04-231-3/+4
| | | | Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* avfilter/af_surround: make channel spread from stereo image user configurablePaul B Mahol2019-04-222-70/+126
|
* avfilter/af_surround: add lfe_mode optionPaul B Mahol2019-04-222-10/+21
|
* avfilter/af_surround: avoid divisions with very small numbersPaul B Mahol2019-04-221-9/+18
|
* avformat/mpegenc - reject unsupported audio streamsGyan Doshi2019-04-221-0/+10
| | | | | Only MP1, MP2, MP3, 16-bit PCM_DVD, PCM S16BE, AC3 and DTS audio codecs are supported by the muxer.
* lavf/oggparsevorbis: Fix change the case of metadata keys issueJun Zhao2019-04-223-7/+6
| | | | | | | | | | | The spec in https://xiph.org/vorbis/doc/v-comment.html states that the metadata keys are case-insensitive, so don't change the case and update the fate test case. Fix #7784 Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* avformat/dashenc: Fix a bug with writing "final" manifestKarthick J2019-04-221-1/+1
| | | | This bug was introduced in the commit 951561b64ee6c11f01daedd9dcf73276cc1e765b
* avformat/dashdec: add ProgramInformation parserSteven Liu2019-04-221-0/+30
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avcodec/agm: remove ;;Michael Niedermayer2019-04-211-1/+1
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/agm: Check for too many too short codes in make_new_tree()Michael Niedermayer2019-04-211-2/+8
| | | | | | | | | Fixes: SEGV on unknown address Fixes: 14198/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AGM_fuzzer-5723579234123776 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>