summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | avcodec/diracdec: Correct max pixels checkMichael Niedermayer2019-03-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | Dirac internally allocates 5 images per plane and frame currently. One being the actual image the other 4 being filtered for motion compensation. Fixes: Out of memory Fixes: 12870/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5684825871089664 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/protocols: move option follow entry to correct sectionGyan Doshi2019-03-031-11/+6
| | | | | | | | | | The entry for file protocol option 'follow' was inserted under ftp options during merge of a Libav commit - 90eb24996913238e1a. Corrected.
* | configure: select rotation filters for ffmpegGyan Doshi2019-03-021-2/+2
| | | | | | | | | | | | autorotate is enabled by default in ffmpeg so the rotation filters are required and will be attempted for insertion without the user's knowledge if an input stream has rotation side-data.
* | tools/target_dec_fate.list: Add testcases for #2000 to #4000Michael Niedermayer2019-03-011-0/+196
| | | | | | | | | | | | Testcases which return 403 currently are commented out Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fate.sh: Add support for lines that are commentsMichael Niedermayer2019-03-011-0/+5
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/jpeg2000dwt: Fix integer overflow in dwt_decode97_int()Michael Niedermayer2019-03-011-1/+1
| | | | | | | | | | | | | | | | Fixes: runtime error: signed integer overflow: 2147483598 + 128 cannot be represented in type 'int' Fixes: 12926/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5705100733972480 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/get_bits: add assertion to limit ouptut value of get_bitsMarton Balint2019-03-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should fix the following Coverity false positives: Coverity CID #1415651. Coverity CID #1420392. Coverity CID #1420473. Coverity CID #1433770. Coverity CID #1435320. Coverity CID #1439573. Coverity CID #1439580. Coverity CID #1439588. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avcodec/get_bits: use unsigned integers in show_bits and get_bitsMarton Balint2019-03-011-2/+2
| | | | | | | | | | | | The return value is also unsigned. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avcodec/avpacket: add some assertions to ensure pkt->data is not null if ↵Marton Balint2019-03-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | pkt->size > 0 This should fix the following Coverity false positives: Coverity CID #1405450. Coverity CID #1430930. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avformat/utils: fix indentationMarton Balint2019-03-011-118/+118
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | avformat/utils: be even more strict about stream specifiersMarton Balint2019-03-011-11/+15
| | | | | | | | | | | | | | | | | | After this change we always parse the full specifier even if we know the result in the middle of the parsing. Sligtly slower, but this is needed to consistently reject incorrect specifiers in both matching and non-matching cases. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avformat/utils: be more strict about stream specifiersMarton Balint2019-03-011-31/+51
| | | | | | | | | | | | | | | | | | | | | | | | This reworks the code to be more strict about accepting stream specifiers. From now on we strictly enforce the syntax in the documentation up until the decisive part of the stream specifier. Therefore matching stream specifiers always need to be correct, non matching specifiers only need to be correct until the decisive part. Also recursion is changed to a simple loop. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avformat/mpegtsenc: write format_identifier HEVC for HEVC streamsMarton Balint2019-03-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This improves compatibility with some consumer (LG WebOS) TVs which apparently search a HEVC descriptor (which our mpegts muxer can't generate) or a format identifier. Since the HEVC format identifier is not registered (but used in the wild), it is not written if strict_std_compliance is higher than normal. This fixes the issue in ticket #7744. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avformat/mpegtsenc: factorize writing registration_descriptorMarton Balint2019-03-011-32/+18
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | avfilter/af_anlmdn: add output mode optionPaul B Mahol2019-03-012-1/+35
| |
* | configure: update minimum required ffnvcodec versionsTimo Rothenpieler2019-02-271-4/+5
| | | | | | | | Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* | configure: pass windows-path to nvcc whenever cygpath is availableTimo Rothenpieler2019-02-271-1/+4
| | | | | | | | | | | | It might be using cl.exe on Windows, which does not understand Unix-Paths. Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* | configure: deprecate cuda_sdk dependency optionPhilip Langdale2019-02-271-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | With all of our existing users of cuda_sdk switched over to ffnvcodec, we could remove cuda_sdk completely and say that we should no longer add code that requires the full sdk, and rather insist that such code only use ffnvcodec. As discussed previously, the use of nvcc from the sdk is still supported with a distinct option. Signed-off-by: Philip Langdale <philipl@overt.org> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* | avfilter/vf_thumbnail_cuda: Switch to using ffnvcodecPhilip Langdale2019-02-273-81/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | This change switches the vf_thumbnail_cuda filter from using the full cuda sdk to using the ffnvcodec headers and loader. Most of the change is a direct mapping, but I also switched from using texture references to using texture objects. This is supposed to be the preferred way of using textures, and the texture object API is the one I added to ffnvcodec. Signed-off-by: Philip Langdale <philipl@overt.org> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* | avfilter/vf_scale_cuda: Switch to using ffnvcodecPhilip Langdale2019-02-273-115/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | This change switches the vf_scale_cuda filter from using the full cuda sdk to using the ffnvcodec headers and loader. Most of the change is a direct mapping, but I also switched from using texture references to using texture objects. This is supposed to be the preferred way of using textures, and the texture object API is the one I added to ffnvcodec. Signed-off-by: Philip Langdale <philipl@overt.org> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* | avfilter/vf_yadif_cuda: Switch to using ffnvcodecPhilip Langdale2019-02-272-28/+32
| | | | | | | | | | | | | | | | This change switches the vf_thumbnail_cuda filter from using the full cuda sdk to using the ffnvcodec headers and loader. Signed-off-by: Philip Langdale <philipl@overt.org> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* | configure: Add an explicit check and option for nvccPhilip Langdale2019-02-271-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | The use of nvcc to compile cuda kernels is distinct from the use of cuda sdk libraries and linking against those libraries. We have previously not bothered to distinguish these two cases because all the filters that used cuda kernels also used the sdk. In the following changes, I'm going to remove the sdk dependency from those filters, but we need a way to ensure that nvcc is present and functioning, and also a way to explicitly disable its use so that the filters are not built. Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* | fate/proresenc_aw : add test for interlace and 444 encodingMartin Vignali2019-02-2713-1/+61
| |
* | avcodec/proresenc_aw : fix sub_image_with_fill for interlaced encodingMartin Vignali2019-02-271-2/+2
| | | | | | | | used when width and/or height, not multiple of sclice dim
* | avcodec/mips: [loongson] mmi optimizations for VP9 put and avg functionsgxw2019-02-275-0/+736
| | | | | | | | | | | | | | VP9 decoding speed improved about 60.5%(from 38fps to 61fps, tested on loongson 3A3000). Reviewed-by: Shiyou Yin <yinshiyou-hf@loongson.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | mov: Fix start_time for streams with empty edits in the middleJustin Ruggles2019-02-261-1/+3
| | | | | | | | | | | | | | | | | | Empty edits can occur at any position within the edit list except for at the end. Empty edits in the middle should not impact the reported stream start_time or the video PTS adjustment, so only include empty edits at the start of the list in empty_edits_sum_duration. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | http: Do not try to make a new request when seeking past the end of the fileJustin Ruggles2019-02-261-0/+7
| | | | | | | | | | | | | | | | | | | | This avoids making invalid HTTP Range requests for a byte range past the known end of the file during a seek. Those requests generally return a HTTP response of 416 Range Not Satisfiable, which causes an error response. Reference: https://tools.ietf.org/html/rfc7233 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | vaapi_encode_mpeg2: Add missing marker bit in time_codeMark Thompson2019-02-251-1/+2
| | | | | | | | | | We don't have anything useful to put in this field, but there is still meant to be a marker bit in the middle of it.
* | vaapi_encode_mjpeg: Use common quality optionMark Thompson2019-02-251-2/+3
| | | | | | | | | | | | Doesn't change anything, but makes the behaviour better match that of the other codecs (the CONSTANT_QUALITY_ONLY flag already ensures that CQP is the only RC mode selectable for MJPEG).
* | vaapi_encode_vp9: Fix whitespace after previous patchMark Thompson2019-02-251-15/+15
| |
* | vaapi_encode_vp9: Enable support for more RC modesMark Thompson2019-02-251-4/+13
| |
* | vaapi_encode_vp8: Enable support for more RC modesMark Thompson2019-02-251-6/+10
| |
* | vaapi_encode_mpeg2: Enable support for more RC modesMark Thompson2019-02-251-11/+13
| | | | | | | | Fixes #7650.
* | vaapi_encode_h265: Enable support for more RC modesMark Thompson2019-02-251-12/+20
| | | | | | | | | | Also fixes QP going out of range when modified by the quant factor/offset values, and clarifies the QP behaviour for >8-bit modes.
* | vaapi_encode_h264: Enable support for more RC modesMark Thompson2019-02-251-12/+19
| | | | | | | | | | Also fixes QP going out of range when modified by the quant factor/offset values.
* | vaapi_encode: Support more RC modesMark Thompson2019-02-253-113/+358
| | | | | | | | | | Allow setting the mode explicitly, and try to make a sensible choice given the available parameters if not.
* | vaapi_encode: Do not zero access unit structuresMark Thompson2019-02-252-9/+0
| | | | | | | | | | | | | | Following b8c45bbcbc207293f955e838ea66106f4b65b1ac they contain allocated unit arrays which will get leaked. These operations were inconsistently applied and never actually needed (the old uninit left them in the correct state), so just drop them entirely.
* | libavcodec/cbs: Stop needlessly reallocating the units arrayAndreas Rheinhardt2019-02-2515-59/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, a fragment's unit array is constantly reallocated during splitting of a packet. This commit changes this: One can keep the units array by distinguishing between the number of allocated and the number of valid units in the units array. The more units a packet is split into, the bigger the benefit. So MPEG-2 benefits the most; for a video coming from an NTSC-DVD (usually 32 units per frame) the average cost of cbs_insert_unit (for a single unit) went down from 6717 decicycles to 450 decicycles (based upon 10 runs with 4194304 runs each); if each packet consists of only one unit, it went down from 2425 to 448; for a H.264 video where most packets contain nine units, it went from 4431 to 450. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com>
* | filter_units, trace_headers: Always use fragment from contextAndreas Rheinhardt2019-02-252-10/+11
| | | | | | | | | | | | | | This is in preparation for another patch that will stop needless reallocations of the unit array. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com>
* | avcodec/wcmv: Avoid copying frames if they are unchangedMichael Niedermayer2019-02-251-1/+3
| | | | | | | | | | | | | | | | | | Improves speed of the testcase by about a factor of 10 Fixes: Timeout Fixes: 13132/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WCMV_fuzzer-5664190616829952 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/wcmv: Copy/Init frame laterMichael Niedermayer2019-02-251-10/+10
| | | | | | | | | | | | | | | | Speeds up error cases Fixes: 13132/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WCMV_fuzzer-5664190616829952 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/error_resilience: Use a symmetric check for skipping MV estimationMichael Niedermayer2019-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | This speeds up the testcase by a factor of 4 Fixes: Timeout Fixes: 13100/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMV2_fuzzer-5767533905313792 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/mjpegdec: Fix stereo3d memleakMichael Niedermayer2019-02-251-0/+1
| | | | | | | | | | | | | | Fixes: 12937/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_THP_fuzzer-5714945346371584 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/arbc: Check nb_tiles against dimensionsMichael Niedermayer2019-02-251-0/+6
| | | | | | | | | | | | | | | | Fixes: Timeout Fixes: 12967/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ARBC_fuzzer-5639021454163968 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc: -report defaults to loglevel debugGyan Doshi2019-02-251-1/+1
| |
* | avformat/dashenc: Added commentsKarthick J2019-02-251-0/+3
| | | | | | | | Added comments regarding usage of certain movflags in streaming mode.
* | avformat/dashenc: Added option to repeatedly publish master playlistKarthick J2019-02-252-1/+11
| | | | | | | | The master playlist can be published at a specified interval with this option
* | avformat:matroskadec: use a define to mark the EBML length is unknownSteve Lhomme2019-02-241-5/+7
| | | | | | | | | | | | | | | | | | | | Unifying the way the EBML unknown length is signaled, rather than using two incompatible values. UINT64_MAX cannot be read as a valid EBML length with the current code. Co-authored-by: Steve Lhomme <robux4@ycbcr.xyz> Co-authored-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/cuda_check: Fix non-dynamic-loader implementationPhilip Langdale2019-02-241-2/+5
| | | | | | | | | | | | | | | | | | The function typedefs we were using are only present when using the dynamic loader, which means compilation breaks for code directly using the cuda SDK. To fix this, let's just duplicate the function typedefs locally. These are not going to change.
* | avcodec/mlpdec: Insuffient typoMichael Niedermayer2019-02-231-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
OpenPOWER on IntegriCloud