summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | avformat/mov: Move +1 in check to avoid hypothetical overflow in ↵Michael Niedermayer2018-03-261-1/+1
| | | | | | | | | | | | 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-261-1/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avfilter/af_mcompand: make error message more helpfulPaul B Mahol2018-03-251-1/+1
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | doc/filter.texi: fix some spotted typosPaul B Mahol2018-03-251-3/+3
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | movtextdec: fix handling of UTF-8 subtitleswm42018-03-251-13/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-255-2/+8
| | | | | | | | | | | | | | | | 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-251-2/+17
| | | | | | | | | | | | | | | | | | | | 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-241-12/+5
| | | | | | | | | | | | Fixes Coverity CID 1419523. Signed-off-by: Marton Balint <cus@passwd.hu>
* | swscale/rgb2rgb : cosmetic, move shuffle_bytes func declarationMartin Vignali2018-03-241-4/+3
| | | | | | | | | | move shuffle_bytes_1230, 3012, 3210 with the other shuffle_byte declaration
* | checkasm/swscale : add test for rgb shuffle_bytes funcMartin Vignali2018-03-245-0/+96
| |
* | swscale/rgb : add X86 SIMD (SSSE3), for shuffle_bytes_1230, ↵Martin Vignali2018-03-242-0/+12
| | | | | | | | shuffle_bytes_3012, shuffle_bytes_3210
* | swscale/rgb : move shuffle func shuffle_bytes_1230, shuffle_bytes_3012, ↵Martin Vignali2018-03-243-22/+28
| | | | | | | | shuffle_bytes_3210 in order to add SIMD
* | swscale/rgb : add X86 SIMD (SSSE3) for shuffle_bytes_2103 and shuffle_bytes_0321Martin Vignali2018-03-243-1/+90
| |
* | Revert "avcodec/vp9_superframe_bsf: cache packets by creating new references ↵James Almer2018-03-241-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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-246-1/+515
| | | | | | | | | | | | | | | | 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-244-2/+39
| | | | | | | | | | 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-231-16/+9
| | | | | | | | | | | | | | 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-231-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-231-0/+5
| | | | | | | | | | | | | | | | 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-232-43/+4
| | | | | | | | | | | | | | | | | | | | | | 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-232-6/+48
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | doc/filters: itemize channelmap examplesPaul B Mahol2018-03-231-0/+6
| | | | | | | | 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-232-18/+115
| | | | | | | | 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-231-0/+3
| | | | | | | | | | | | defaults Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter/af_channelsplit: add channels optionPaul B Mahol2018-03-232-6/+51
| | | | | | | | | | | | 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-221-6/+6
| |
* | hwcontext_opencl: Add support for mapping DRM objects to BeignetMark Thompson2018-03-222-142/+139
| | | | | | | | Also use that to support mapping VAAPI to Beignet.
* | hwcontext_vaapi: Pass correct read/write flags when exporting surfacesMark Thompson2018-03-221-3/+8
| |
* | hwcontext_vaapi: Add support for legacy DRM mappingMark Thompson2018-03-221-12/+182
| | | | | | | | | | | | 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-221-0/+3
| |
* | lavfi: Add OpenCL avgblur filterdrfer32018-03-226-0/+393
| | | | | | | | | | | | | | 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-221-0/+2
| | | | | | | | | | 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-223-12/+8
| | | | | | | | | | | | | | | | | | | | 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.
* | lavfi/opencl: Derive global work size from plane image sizesMark Thompson2018-03-225-15/+87
| | | | | | | | | | | | | | Add a new function to find the global work size given the output image and the required block alignment, then use it in the overlay, program and unsharp filters. Fixes the overlay and unsharp filters applying the kernel to locations outside the frame when subsampled planes are present.
* | avfilter/avf_showvolume: add background opacity optionPaul B Mahol2018-03-222-4/+16
| | | | | | | | | | | | This makes output more visible when overlayed. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/extract_extradata: don't uninitialize the H2645Packet on every ↵James Almer2018-03-221-14/+19
| | | | | | | | | | | | | | | | | | | | processed packet Based on hevc_parser code. This prevents repeated unnecessary allocations and frees on every packet processed by the bsf. Reviewed-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/mpeg4_unpack_bframes: make sure the packet is writable when data ↵James Almer2018-03-221-0/+3
| | | | | | | | | | | | | | | | | | | | needs to be changed Nothing currently guarantees that the packet passed to the bsf will be writable. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | lavf/movenc: write track title metadata for mov filesCourtland Idstrom2018-03-221-1/+1
| | | | | | | | | | | | | | | | | | Track title (atom 'name') is a well defined user data atom for mov files. Existing code (for mp4) only writes title metadata if present. Relevant reference docs: https://developer.apple.com/library/content/documentation/QuickTime/Reference/QTRef_AtomsResources/Content/QTRef_AtomsResources4.html#//apple_ref/doc/uid/TP40004285-DontLinkChapterID_1--udta- https://developer.apple.com/library/content/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-63839
* | lavc/cfhd: add alpha decompanding in rgba12Gagandeep Singh2018-03-221-0/+19
| | | | | | | | | | Alpha decompanding curve added to post process the decoded alpha channel. Fixes ticket #6265.
* | avcodec/dxva2_vc1: add missing frame_params callback to vc1_d3d11va2 hwaccelJames Almer2018-03-221-0/+1
| | | | | | | | | | | | | | Fixes ticket #7096 Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | changelog: add missing line for filter_units bsfJames Almer2018-03-221-0/+1
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | cmdutils: print supported codecs in show_help_bsf()James Almer2018-03-222-0/+5
| | | | | | | | | | Tested-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/avpacket: add av_packet_make_writable()James Almer2018-03-214-1/+39
| | | | | | | | | | | | | | Useful as well to quickly make a packet reference counted when it isn't already so. Signed-off-by: James Almer <jamrial@gmail.com>
* | lavc/remove_extradata_bsf: support dump options.Jun Zhao2018-03-211-5/+6
| | | | | | | | | | | | | | support dump bit stream filter options Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | lavc/noise_bsf: support dump options.Jun Zhao2018-03-211-2/+3
| | | | | | | | | | | | | | support dump bit stream filter options. Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | lavc/dump_extradata_bsf: support dump options.Jun Zhao2018-03-211-5/+6
| | | | | | | | | | | | | | support dump bit stream filter options Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/unix: fix handling of EOF in case of SOCK_STREAM.Bela Bodecs2018-03-211-0/+2
| | | | | | | | | | | | | | When recv() returns 0 in case of SOCK_STREAM type, it means EOF and with this patch returns value accordingly. Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu>
* | avfilter/vf_waveform: add orange graticulePaul B Mahol2018-03-212-21/+29
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter/vf_waveform: add xflat modePaul B Mahol2018-03-212-254/+307
| | | | | | | | | | | | Also use macros for xflat and aflat mode. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/vp9_superframe_split: fix memory leak in case of output packet ↵James Almer2018-03-211-0/+2
| | | | | | | | | | | | | | | | creation failure Some function calls may fail after the output packet is initialized. Signed-off-by: James Almer <jamrial@gmail.com>
OpenPOWER on IntegriCloud