summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Merge commit '9c37d765ef28b027414f86b0088b0c282a3c46d8'James Almer2018-03-28
|\ | | | | | | | | | | | | * commit '9c37d765ef28b027414f86b0088b0c282a3c46d8': configure: Add check_cc/require_cc helper functions to simplify some expressions Merged-by: James Almer <jamrial@gmail.com>
| * configure: Add check_cc/require_cc helper functions to simplify some expressionsDiego Biurrun2018-03-07
| |
* | avformat/dashdec: Support signaling of last segment numbersanilraut2018-03-28
| | | | | | | | | | | | | | | | | | | | Last segment indicated by mpd is not parsed. Example stream: http://dash.akamaized.net/dash264/TestCasesIOP41/LastSegmentNumber/1/manifest_last_segment_num.mpd This patch supports parsing of Supplemental Descriptor with @schemeIdUri set to http://dashif.org/guide- lines/last-segment-number with the @value set to the last segment number. Reviewed-by: Steven Liu <lq@onvideo.cn>
* | hwcontext_d3d11: Fix crash with valid adapter but no deviceMark Thompson2018-03-28
| | | | | | | | | | | | | | | | | | | | This crash was introduced by 8bbf2dacbfb4ead1535dea411035994f507f517d, which could incorrectly overwrite the failure result from creating the device. Fixes ticket #7108. Reviewed-by: wm4 <nfxjfg@googlemail.com>
* | doc/examples/hw_decode: Remove logically dead code in decode_write()Michael Niedermayer2018-03-27
| | | | | | | | | | | | | | Fixes CID1415951 Reviewed-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/examples/hw_decode: Remove useless NULL checkMichael Niedermayer2018-03-27
| | | | | | | | | | Reviewed-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/APIchanges: fix lavu version for the AVEncryptionInfo additionJames Almer2018-03-27
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/avpacket: remove unnecessary check in av_packet_make_writable()James Almer2018-03-27
| | | | | | | | | | | | | | Zero sized packets are already handled below in the function. This is more in line with av_packet_ref(). Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/hlsenc: initialize saveptrsTimo Rothenpieler2018-03-27
| | | | | | | | | | | | | | | | | | | | av_strtok calls strspn on a non-NULL *saveptr, so not NULL initializing it is an issue. Fixes CID #1428568 Reviewed-by: Karthick Jeyapal <kjeyapal@akamai.com> Signed-off-by: Steven Liu <lq@onvideo.cn> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* | kmsgrab: add category for kmsgrabJun Zhao2018-03-26
| | | | | | | | | | | | | | Makes kmsgrab visible in "ffmpeg -devices". Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | avfilter/vf_avgblur_opencl: fix error when clSetKernelArg failsdrfer32018-03-26
| | | | | | | | Fixes Coverity CID 1430382.
* | vf_avgblur_opencl: Don't run kernel on pixels outside the imageMark Thompson2018-03-26
| | | | | | | | | | | | | | | | The output frame size is larger than the image containing a subsampled plane - use the actual size of the image being written rather than the dimensions of the intended output frame. Reviewed-by: Dylan Fernando <dylanf123@gmail.com>
* | libavfilter: Add OpenCL convolution filterDanil Iashchenko2018-03-26
| | | | | | | | | | | | Behaves like existing convolution filter. Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | avformat/segafilm - fix keyframe detection and set packet flagsGyan Doshi2018-03-26
| | | | | | | | | | | | | | | | | | | | | | Streams from a Segafilm cpk file can't be streamcopied because keyframe flag isn't correctly set in stream index and said flag is never conveyed to the packet Fixes #7091 Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/avdct: use the proper function to free AVCodecContextJames Almer2018-03-26
| | | | | | | | | | | | Fixes ticket #7074 Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/rtpenc_chain: use the proper function to free AVFormatContextJames Almer2018-03-26
| | | | | | | | | | | | Fixes ticket #7075 Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/mpeg4videodec: Use more specific error codesMichael Niedermayer2018-03-26
| | | | | | | | | | | | Forward error codes where possible. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/mov: Move +1 in check to avoid hypothetical overflow in ↵Michael Niedermayer2018-03-26
| | | | | | | | | | | | add_ctts_entry() Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/get_bits: Make sure the input bitstream with padding can be addressedMichael Niedermayer2018-03-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avfilter/af_mcompand: make error message more helpfulPaul B Mahol2018-03-25
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | doc/filter.texi: fix some spotted typosPaul B Mahol2018-03-25
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | movtextdec: fix handling of UTF-8 subtitleswm42018-03-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Subtitles which contained styled UTF-8 subtitles (i.e. not just 7 bit ASCII characters) were not handled correctly. The spec mandates that styling start/end ranges are in "characters". It's not quite clear what a "character" is supposed to be, but maybe they mean unicode codepoints. FFmpeg's decoder treated the style ranges as byte idexes, which could lead to UTF-8 sequences being broken, and the common code dropping the whole subtitle line. Change this and count the codepoint instead. This also means that even if this is somehow wrong, the decoder won't break UTF-8 sequences anymore. The sample which led me to investigate this now appears to work correctly.
* | avcodec: add a subcharenc mode that disables UTF-8 checkwm42018-03-25
| | | | | | | | | | | | | | | | This is for applications which want to explicitly check for invalid UTF-8 manually, and take actions that are better than dropping invalid subtitles silently. (It's pretty much silent because sporadic avcodec error messages are so common that you can't reasonably display them in a prominent and meaningful way in a application GUI.)
* | avformat/hlsenc: use stream's maximum bit rate as fall-back advertised rateJan Ekström2018-03-25
| | | | | | | | | | | | | | | | | | | | Enables having proper bit rate values being written into the master playlist in case of hard-constrained VBR where the maximum bit rate utilized is known before hand. Does the same thing as movenc.c, for example. Signed-off-by: Jan Ekström <jan.ekstrom@aminocom.com>
* | avdevice/decklink: fix leak when listing devices and there is no memoryMarton Balint2018-03-24
| | | | | | | | | | | | Fixes Coverity CID 1419523. Signed-off-by: Marton Balint <cus@passwd.hu>
* | swscale/rgb2rgb : cosmetic, move shuffle_bytes func declarationMartin Vignali2018-03-24
| | | | | | | | | | move shuffle_bytes_1230, 3012, 3210 with the other shuffle_byte declaration
* | checkasm/swscale : add test for rgb shuffle_bytes funcMartin Vignali2018-03-24
| |
* | swscale/rgb : add X86 SIMD (SSSE3), for shuffle_bytes_1230, ↵Martin Vignali2018-03-24
| | | | | | | | shuffle_bytes_3012, shuffle_bytes_3210
* | swscale/rgb : move shuffle func shuffle_bytes_1230, shuffle_bytes_3012, ↵Martin Vignali2018-03-24
| | | | | | | | shuffle_bytes_3210 in order to add SIMD
* | swscale/rgb : add X86 SIMD (SSSE3) for shuffle_bytes_2103 and shuffle_bytes_0321Martin Vignali2018-03-24
| |
* | Revert "avcodec/vp9_superframe_bsf: cache packets by creating new references ↵James Almer2018-03-24
| | | | | | | | | | | | | | | | | | | | | | | | rather than moving them" This reverts commit 7a02b364b68c0bf7f065f5c217fae458f0efdb8d. The packet fetched by ff_bsf_get_packet() and ff_bsf_get_packet_ref() is now guaranteed to be reference counted. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/avcodec.h: Add encryption info side data.Jacob Trimble2018-03-24
| | | | | | | | | | | | | | | | This new side-data will contain info on how a packet is encrypted. This allows the app to handle packet decryption. Signed-off-by: Jacob Trimble <modmaker@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavf/utils.c: Don't compute start_time from DISCARD packets for video.Sasi Inguva2018-03-24
| | | | | | | | | | Signed-off-by: Sasi Inguva <isasi@isasi.mtv.corp.google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/noise_bsf: move the reference in the bsf internal bufferJames Almer2018-03-23
| | | | | | | | | | | | | | There's no need to allocate a new packet for it. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/bsf: make sure the AVBSFInternal stored packet is reference countedJames Almer2018-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some bitstream filters may buffer said packet in their own contexts for latter use. The documentation for av_bsf_send_packet() doesn't forbid feeding it non-reference counted packets, which depending on the way said packets were internally buffered by the bsf it may result in the data described in them becoming invalid or unavailable at any time. This was the case with vp9_superframe after commit e1bc3f4396, which was then promptly fixed in 37f4a093f7 and 7a02b364b6. It is still the case even today with vp9_reorder_raw. With this change the bitstream filters will not have to worry how to store or consume the packets fed to them. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | ffmpeg: pass reference counted packet on codec copy when possibleJames Almer2018-03-23
| | | | | | | | | | | | | | | | Should prevent unnecessary copy of data in cases where new references to the packet are created within the muxer or a bitstream filter. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | ffmpeg: remove dead call to av_parser_change()James Almer2018-03-23
| | | | | | | | | | | | | | | | | | | | | | It's been a noop for years, and it's been argued that in-band headers should not be forcedly removed without the user's explicit request. Also, as the FIXME line stated, this is a job for a bitstream filter like extract_extradata, remove_extradata, dump_extradata, and filter_units. Signed-off-by: James Almer <jamrial@gmail.com>
* | avfilter/avf_showvolume: implement basic rms metering modePaul B Mahol2018-03-23
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | doc/filters: itemize channelmap examplesPaul B Mahol2018-03-23
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter/avf_showwaves: add draw mode which controls how single sample is drawnPaul B Mahol2018-03-23
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter/vf_convolution: disable fast path if rdiv/bias are different from ↵Paul B Mahol2018-03-23
| | | | | | | | | | | | defaults Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter/af_channelsplit: add channels optionPaul B Mahol2018-03-23
| | | | | | | | | | | | So user can pick which channels to extract. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | vf_scale_vaapi: Apply cropping rectangle to inputMark Thompson2018-03-22
| |
* | hwcontext_opencl: Add support for mapping DRM objects to BeignetMark Thompson2018-03-22
| | | | | | | | Also use that to support mapping VAAPI to Beignet.
* | hwcontext_vaapi: Pass correct read/write flags when exporting surfacesMark Thompson2018-03-22
| |
* | hwcontext_vaapi: Add support for legacy DRM mappingMark Thompson2018-03-22
| | | | | | | | | | | | The old vaAcquireBufferHandle() API works in fewer cases and provides less information than the current vaExportSurfaceHandle(), but it exists on older versions and is already used by the OpenCL code.
* | hwcontext_drm: Clarify value for unknown format modifiersMark Thompson2018-03-22
| |
* | lavfi: Add OpenCL avgblur filterdrfer32018-03-22
| | | | | | | | | | | | | | Behaves like the existing avgblur filter, except working on OpenCL hardware frames. Takes exactly the same options. Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | hwcontext_opencl: Avoid deprecation warnings when built with post-1.2 headersMark Thompson2018-03-22
| | | | | | | | | | Matching the previous commit. This is not applied to the installed header because it could incorrectly suppress the warning inside user programs.
* | lavfi/opencl: Avoid deprecation warnings when built with post-1.2 headersMark Thompson2018-03-22
| | | | | | | | | | | | | | | | | | | | The intended target is OpenCL 1.2, so disable warnings for APIs deprecated after that. This primarily applies to clCreateCommandQueue(), we can't use the replacement clCreateCommandQueueWithProperties() because it was introduced in OpenCL 2.0. Also remove some unnecessary includes from overlay and program filters so that the define is available at the right moment.