summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* avcodec/hevc_ps: add a function to uninitialize parameter set buffersJames Almer2018-01-21
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* lavf/rawdec: Also probe the last byte of mjpeg streams.Carl Eugen Hoyos2018-01-21
| | | | Fixes ticket #6957.
* avcodec: v4l2_m2m: context: fix raising warning on POLLERRJorge Ramirez-Ortiz2018-01-21
| | | | | | | | | | | | | | During the initialization stage, the codec attempts to get free buffers from the driver before any have been queued (this is to keep the code simple and generic) When the kernel driver detects this situation, it returns POLLERR in revents and ffmpeg therefore raises a warning. This commit disables the warning since no buffers were queued to the driver yet. Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
* avcodec: v4l2_m2m: remove unnecessary timeout.Jorge Ramirez-Ortiz2018-01-21
| | | | | | | | | | | | | | Qualcomm's db410c/db820 Venus driver currently present in mainline kernel has a bug which mishandles the CMD_STOP requests causing the decoder to block while draining [1]. This patch removes the workaround that was used to prevent that situation. Encoding/Decoding tested on db820c. [1] on CMD_STOP, the driver is flushing all buffers and never raising IPIPE which ends up in blocking on poll.
* avcodec: v4l2_m2m: fix races around freeing data on closeMark Thompson2018-01-21
| | | | | | | | Refcount all of the context information. This also fixes a potential segmentation fault when accessing freed memory (buffer returned after the codec has been closed). Tested-by: Jorge Ramirez-Ortiz <jorge.ramirez.ortiz@gmail.com>
* avfilter/drawtext - implement fix_boundsGyan Doshi2018-01-20
| | | | | | | | | | | When enabled, text, including effects like shadow or box, will be completely bound within the video frame. Default value changed to false to keep continuity of behaviour. Fixes #6960. Signed-off-by: Kyle Swanson <k@ylo.ph>
* avcodec/snowdec: Fix integer overflow before htaps checkMichael Niedermayer2018-01-20
| | | | | | | | Fixes: runtime error: signed integer overflow: -1094995529 * 2 cannot be represented in type 'int' Fixes: 4828/clusterfuzz-testcase-minimized-5100849937252352 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ulti: Check number of blocks at initMichael Niedermayer2018-01-20
| | | | | | | | Fixes: Timeout Fixes: 4832/clusterfuzz-testcase-4699096590843904 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/lrcdec: Fix memory leak in lrc_read_header()Nikolas Bowe2018-01-20
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* x86inc: Drop cpuflags_slowctzHenrik Gramner2018-01-20
|
* x86inc: Correctly set mmreg variablesHenrik Gramner2018-01-20
|
* x86inc: Support creating global symbols from local labelsHenrik Gramner2018-01-20
| | | | | On ELF platforms such symbols needs to be flagged as functions with the correct visibility to please certain linkers in some scenarios.
* x86inc: Use .rdata instead of .rodata on WindowsHenrik Gramner2018-01-20
| | | | | The standard section for read-only data on Windows is .rdata. Nasm will flag non-standard sections as executable by default which isn't ideal.
* x86inc: Enable AVX emulation for floating-point pseudo-instructionsHenrik Gramner2018-01-20
| | | | | | | There are 32 pseudo-instructions for each floating-point comparison instruction, but only 8 of them are actually valid in legacy-encoded mode. The remaining 24 requires the use of VEX-encoded (v-prefixed) instructions and can therefore be disregarded for this purpose.
* avdevice/decklink: Fix compilation of module on OSXDevin Heitmueller2018-01-20
| | | | | | | | | | | | | Clang applies the missing-prototypes warning on C++ files, whereas gcc only applies it to C. As a result, the decklink_common.cpp file fails to build because of missing prototypes in DecklinkDispatch.cpp (which is #included by decklink_common.cpp). We don't want to change the actual Blackmagic SDK sources, so suppress the warning just for that one #include. Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: Suppress warning about misuse of struct instead of classDevin Heitmueller2018-01-20
| | | | | | | | | | | | | When building with Clang, the following warning is shown: warning: struct 'IDeckLinkVideoFrame' was previously declared as a class [-Wmismatched-tags] The function incorrectly casts IDeckLinkVideoFrame as a struct instead of a class pointer. Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: addition of absolute wallclock option for pts sourceVishwanath Dixit2018-01-20
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: addition of PTS_SRC_NB in enum DecklinkPtsSourceVishwanath Dixit2018-01-20
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: addition of copyts optionVishwanath Dixit2018-01-20
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/formats: remove support for deprecated channel count specificationMarton Balint2018-01-20
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* lavf/swfdec: Reduce score when auto-detecting swf files.Carl Eugen Hoyos2018-01-20
| | | | Not more than 32bit are tested.
* avcodec/cuviddec: set key frame for decoded framesYogender Gupta2018-01-19
| | | | Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avformat/matroskadec: Fix float-cast-overflow undefined behavior in ↵Nikolas Bowe2018-01-19
| | | | | | matroska_parse_tracks() Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/hlsenc: Add CODECS attribute to master playlistKarthick Jeyapal2018-01-19
|
* lavfi/vf_scale_vaapi: set output SARRodger Combs2018-01-18
|
* fate: update filter-acrossfade test reference fileJames Almer2018-01-18
| | | | | | | | | | | <jamrial> durandal_1707: 8088b5d69c broke the acrossfade test <@durandal_1707> jamrial: there was test? <jamrial> durandal_1707: fate-filter-acrossfade <@durandal_1707> what broke? <jamrial> what used to be one frame is now two <@durandal_1707> ahh, just update test Signed-off-by: James Almer <jamrial@gmail.com>
* avformat: small AVFormatContext doxy cosmeticsJames Almer2018-01-18
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/af_afade: acrossfade: switch to activatePaul B Mahol2018-01-18
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat: small cosmetics after 6512ff72f9James Almer2018-01-17
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/vidstab: check bytesPerPixel only for packed formats.Gyan Doshi2018-01-17
| | | | | | | | | libvidstab introduced this variable only for packed formats but in vf_vidstab*.c, it's checked for all inputs. So the filter errors out for YUV422/444P streams. Fixes #6736. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavfi/deinterlace_vaapi: fix can't show full option information.Jun Zhao2018-01-17
| | | | | | | | use ffmpeg -h filter=deinterlace_vaapi can't get full help information, the root cause is not setting the flags fileld in options. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit 'cbe28bc069dde1d53d937ee10700bb123279c7c8'Mark Thompson2018-01-16
|\ | | | | | | | | | | | | * commit 'cbe28bc069dde1d53d937ee10700bb123279c7c8': qsv: better to use alignment by 16 and HEVC 10b requires alignment by 32 Merged-by: Mark Thompson <sw@jkqxz.net>
| * qsv: better to use alignment by 16 and HEVC 10b requires alignment by 32Maxym Dmytrychenko2018-01-08
| |
* | Merge commit '34c113335b53d83ed343de49741f0823aa1f8cc6'Mark Thompson2018-01-16
|\| | | | | | | | | | | | | | | | | | | * commit '34c113335b53d83ed343de49741f0823aa1f8cc6': Add support for H.264 and HEVC hardware encoding for AMD GPUs based on AMF SDK Most of this was already present from 9ea6607d294526688ab1b1342cb36ee159683e88, this just applies some minor fixups and adds the general documentation. Merged-by: Mark Thompson <sw@jkqxz.net>
| * Add support for H.264 and HEVC hardware encoding for AMD GPUs based on AMF SDKMichael Wootton2018-01-04
| | | | | | | | | | | | | | Requires AMF headers for at least version 1.4.4.1. Signed-off-by: Mikhail Mironov <mikhail.mironov@amd.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '7b0b5bc810cdb9ef100492c9a9f2d30602c04336'Mark Thompson2018-01-16
|\| | | | | | | | | | | | | | | | | * commit '7b0b5bc810cdb9ef100492c9a9f2d30602c04336': cmdutils: update copyright year to 2018 This commit is a noop, see bddf31ba7570325dd2c8d033eae3d0dd74127f96 Merged-by: Mark Thompson <sw@jkqxz.net>
| * cmdutils: update copyright year to 2018Sean McGovern2018-01-01
| |
* | Merge commit '1efbbfedcaf4a3cecab980273ad809ba3ade2f74'Mark Thompson2018-01-16
|\| | | | | | | | | | | | | * commit '1efbbfedcaf4a3cecab980273ad809ba3ade2f74': examples/qsvdec: do not set the deprecated field refcounted_frames Merged-by: Mark Thompson <sw@jkqxz.net>
| * examples/qsvdec: do not set the deprecated field refcounted_framesZhong Li2017-12-29
| | | | | | | | | | | | | | | | It is used by the deprecated API avcodec_decode_video2 and ignored by the new decode APIs (avcodec_send_packet/avcodec_receive_frame). Signed-off-by: Zhong Li <zhong.li@intel.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit 'e23190269fb6e8217d080918893641ba3e0e3556'Mark Thompson2018-01-16
|\| | | | | | | | | | | | | * commit 'e23190269fb6e8217d080918893641ba3e0e3556': lavu/qsv: add log message for libmfx version Merged-by: Mark Thompson <sw@jkqxz.net>
| * lavu/qsv: add log message for libmfx versionZhong Li2017-12-29
| | | | | | | | | | | | | | It is benefit to diagnose issues related to different libmfx version. Signed-off-by: Zhong Li <zhong.li@intel.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | lavc/snow_dwt: add struct MpegEncContext to fix headers check.Jun Zhao2018-01-16
| | | | | | | | | | | | | | | | add missing struct MpegEncContext, use make checkheaders found this warning. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | hwcontext_d3d11va: implement av_hwdevice_get_hwframe_constraints()wm42018-01-16
| | | | | | | | | | | | | | D3D11 has rather fine grained per format capabilities for different uses that can be queried at runtime. Since we don't know what the user wants to do with the formats when av_hwdevice_get_hwframe_constraints() is called, we simply return all formats that have the most basic support.
* | avformat: make avformat_network_init() explicitly optionalwm42018-01-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was sort of optional before - if you didn't call it, networking was initialized on demand, and an ugly warning was logged. Also, the doxygen comments threatened that it would be made strictly required one day. Make it explicitly optional. I would prefer to deprecate it fully, but there might still be legitimate reasons to use this. But the average user won't need it. This is needed only for two reasons: to initialize TLS libraries like OpenSSL and GnuTLS, and winsock. OpenSSL and GnuTLS were already silently initialized on demand if the global network init function was not called. They also have various thread-safety acrobatics, which make concurrent initialization within libavformat safe. In addition, the libraries are moving towards making their global init functions safe, which removes all need for central global init. In particular, GnuTLS 3.5.16 and OpenSSL 1.1.0g have been found to have safe init functions. In all cases, they use internal reference counters to avoid that the global uninit functions interfere with concurrent uses of the library by other API users who called global init. winsock should be thread-safe as well, and maintains an internal reference counter as well. Since we still support ancient TLS libraries, which do not have this fixed, and since it's unknown whether winsock and GnuTLS reinitialization is costly in any way, don't deprecate the libavformat functions yet.
* | avformat: deprecate another ffserver API leftoverwm42018-01-16
| |
* | avcodec/wavpack: Fix integer overflows in wv_unpack_stereo / monoMichael Niedermayer2018-01-15
| | | | | | | | | | | | | | | | Fixes: runtime error: signed integer overflow: 2146276249 + 1487583 cannot be represented in type 'int' Fixes: 4823/clusterfuzz-testcase-minimized-4551896611160064 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 sum of sizes of band->prec before allocatingMichael Niedermayer2018-01-15
| | | | | | | | | | | | | | | | Fixes: OOM Fixes: 4810/clusterfuzz-testcase-minimized-6034253235093504 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/ac3dec_fixed: Fix integer overflow in scale_coefs()Michael Niedermayer2018-01-15
| | | | | | | | | | | | | | | | Fixes: runtime error: signed integer overflow: 2147483520 + 128 cannot be represented in type 'int' Fixes: 4800/clusterfuzz-testcase-minimized-6110372403609600 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | hwcontext_vdpau: implement av_hwdevice_get_hwframe_constraints()wm42018-01-15
| | | | | | | | | | | | | | | | | | | | | | In addition, this does not allow creating frames contexts with sw_format for which no known transfer formats exist. In theory, we should check whether the chroma format (i.e. the sw_format) is supported at all by the vdpau driver, but checking for transfer formats has the same effect. Note that the pre-existing code adds 1 to priv->nb_pix_fmts[i] for unknown reason, and some checks need to account for that to check for empty lists. They are not off-by-one errors.
* | http: cosmetics: reformat reconnect check for better readabilitywm42018-01-15
| | | | | | | | | | | | | | The condition was a bit too long, and most editors will break the line and turn it into an unreadable mess. Move out some of the conditions. This should not change the behavior.