Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-02avfilter/vf_xbr: Fix left shift of negative numberAndreas Rheinhardt
Affected every usage of vf_xbr, e.g. the FATE-tests filter-2xbr, filter-3xbr, filter-4xbr. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 4294dc3589a3ab973b10a85b576ff15e3ffb000d) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-07-02avfilter/vf_hqx: Fix undefined left shifts of negative numbersAndreas Rheinhardt
Affected every usage of this filter; in particular, it affected the FATE-tests filter-2xbr, filter-3xbr and filter-4xbr. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit fa211943265ca991548a4cc2f85a6df9cedcd092) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-07-01avfilter/vf_aspect: Fix integer overflow in compute_dar()Michael Niedermayer
Fixes: signed integer overflow: 1562273630 * 17 cannot be represented in type 'int' Fixes: Ticket8323 Found-by: Suhwan Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 0c0ca0f244b823238e5a4f5584168e620da84899) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-01avfilter/vf_find_rect: Remove assertMichael Niedermayer
A score of 0 is possible Fixes: Ticket8500 Reviewed-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit dfc471488675aa257183745502d0074055db3bd2) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-01avfilter/vf_find_rect: Increase worst case scoreMichael Niedermayer
score could be 1.0 which lead to uninitialized values Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 6ff2474e02200dce7abdea3fd211fcaf49691c2c) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-11-11avfilter/vf_geq: Use av_clipd() instead of av_clipf()Michael Niedermayer
With floats we cannot represent all 32bit integer dimensions Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit c8813b1a984714f0027cabeea2394035df20cf38) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-04-24lavf/qsv: clone the frame which may be managed by frameworkRuiling Song
For filters based on framesync, the input frame was managed by framesync, so we should not directly keep and destroy it, instead we make a clone of it here, or else double-free will occur. But for other filters not based on framesync, we still need to free the input frame inside filter_frame. Signed-off-by: Ruiling Song <ruiling.song@intel.com> (cherry picked from commit d865783b6c8d4f96f5094ed72eff0f5a4a4908af)
2018-04-24lavf: make overlay_qsv work based on framesyncRuiling Song
The existing version which was cherry-picked from Libav does not work with FFmpeg framework, because ff_request_frame() was totally different between Libav (recursive) and FFmpeg (non-recursive). The existing overlay_qsv implementation depends on the recursive version of ff_request_frame to trigger immediate call to request_frame() on input pad. But this has been removed in FFmpeg since "lavfi: make request_frame() non-recursive." Now that we have handy framesync support in FFmpeg, so I make it work based on framesync. Some other fixing which is also needed to make overlay_qsv work are put in a separate patch. Signed-off-by: Ruiling Song <ruiling.song@intel.com> (cherry picked from commit f3341a0452419c57faf4d28aebb24be5d41312f3)
2018-04-16Bump minor versions for branching release/4.0Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-04-16avfilter/showvolume : cosmetic move bracket after func declaration to a new lineMartin Vignali
2018-04-16avfilter/showvolume : add persistent max displayMartin Vignali
draw a color line for the max level in the given duration
2018-04-16avfilter/showvolume : add display scale optionMartin Vignali
linear (current behaviour) or log display (more close to classic audio meter)
2018-04-16avfilter/af_headphone: fix type=time with hrir=multichPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-15avfilter/af_headphone: add single hrir multichannel stream modePaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-14avfilter/af_headphone: fix memory leak and overreadPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-14avfilter/af_headphone: do not output invalid samples when flushingPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-14avfilter/af_headphone: fix flushingPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-14avfilter/af_headphone: improve performance and reduce latencyPaul B Mahol
Remove not needed code. Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-14Merge commit 'cca5e4f040971db6de0bfe6968f00c021d8a9c42'James Almer
* commit 'cca5e4f040971db6de0bfe6968f00c021d8a9c42': qsv: adding Multi Frame Encode support Merged-by: James Almer <jamrial@gmail.com>
2018-04-14Merge commit '29a8ed766354c45c9be4b8512c5b2eb25a450cdc'James Almer
* commit '29a8ed766354c45c9be4b8512c5b2eb25a450cdc': lavf/qsvvpp: bypass vpp if not needed. Merged-by: James Almer <jamrial@gmail.com>
2018-04-13avfilter: add vfrdet filterPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-08qsv: adding Multi Frame Encode supportMaxym Dmytrychenko
Starting from API 1.25 helps to improve performance of the simultaneous encode, 1:N scenario, like: ./avconv -y -hwaccel qsv -c:v h264_qsv -r 30000/1001 -i ~/bbb_sunflower_1080p_60fps_normal.mp4 -vframes 600 -an \ -filter_complex "split=2[s1][s2]; [s1]scale_qsv=1280:720[o1]; [s2]scale_qsv=960:540[o2]" \ -map [o1] -c:v h264_qsv -b:v 3200k -minrate 3200k -maxrate 3200k -f rawvideo /tmp/3200a.264 \ -map [o2] -c:v h264_qsv -b:v 1750k -minrate 1750k -maxrate 1750k -f rawvideo /tmp/1750a.264 Signed-off-by: Maxym Dmytrychenko <maxim.d33@gmail.com>
2018-04-08lavf/qsvvpp: bypass vpp if not needed.Zhong Li
Currently vpp pipeline is always created, even for the unnecessary cases such as setting the option "vpp_qsv=w=1280:h=720" for an input with native resolution 1280x720. Thus introduces unnecessary performance dropping, so bypass vpp if not needed. Signed-off-by: Zhong Li <zhong.li@intel.com> Signed-off-by: Maxym Dmytrychenko <maxim.d33@gmail.com>
2018-04-06lavfi,lavd: add gitignore for generated static component listsJosh de Kock
Signed-off-by: Josh de Kock <josh@itanimul.li>
2018-04-05avfilter/x86/vf_blend : add SIMD for 16 bit version ofMartin Vignali
grainextract grainmerge average extremity negation
2018-04-05avfilter/x86/vf_blend : reorganize DIFFERENCE macro to reduce line ↵Martin Vignali
duplication between 8bit and 16 bit version
2018-04-03avutil/pixdesc: deprecate AV_PIX_FMT_FLAG_PSEUDOPALwm4
PSEUDOPAL pixel formats are not paletted, but carried a palette with the intention of allowing code to treat unpaletted formats as paletted. The palette simply mapped the byte values to the resulting RGB values, making it some sort of LUT for RGB conversion. It was used for 1 byte formats only: RGB4_BYTE, BGR4_BYTE, RGB8, BGR8, GRAY8. The first 4 are awfully obscure, used only by some ancient bitmap formats. The last one, GRAY8, is more common, but its treatment is grossly incorrect. It considers full range GRAY8 only, so GRAY8 coming from typical Y video planes was not mapped to the correct RGB values. This cannot be fixed, because AVFrame.color_range can be freely changed at runtime, and there is nothing to ensure the pseudo palette is updated. Also, nothing actually used the PSEUDOPAL palette data, except xwdenc (trivially changed in the previous commit). All other code had to treat it as a special case, just to ignore or to propagate palette data. In conclusion, this was just a very strange old mechnaism that has no real justification to exist anymore (although it may have been nice and useful in the past). Now it's an artifact that makes the API harder to use: API users who allocate their own pixel data have to be aware that they need to allocate the palette, or FFmpeg will crash on them in _some_ situations. On top of this, there was no API to allocate the pseuo palette outside of av_frame_get_buffer(). This patch not only deprecates AV_PIX_FMT_FLAG_PSEUDOPAL, but also makes the pseudo palette optional. Nothing accesses it anymore, though if it's set, it's propagated. It's still allocated and initialized for compatibility with API users that rely on this feature. But new API users do not need to allocate it. This was an explicit goal of this patch. Most changes replace AV_PIX_FMT_FLAG_PSEUDOPAL with FF_PSEUDOPAL. I first tried #ifdefing all code, but it was a mess. The FF_PSEUDOPAL macro reduces the mess, and still allows defining FF_API_PSEUDOPAL to 0. Passes FATE with FF_API_PSEUDOPAL enabled and disabled. In addition, FATE passes with FF_API_PSEUDOPAL set to 1, but with allocation functions manually changed to not allocating a palette.
2018-04-02lav*,tests: remove several register_all callsJosh de Kock
avdevice_register_all() is still required to register devices into lavf (this is required due to lavd being somewhat of a hack). Signed-off-by: Josh de Kock <josh@itanimul.li>
2018-04-02avfilter: bump version for the latest API changeJames Almer
And fix the entry in doc/APIchanges Signed-off-by: James Almer <jamrial@gmail.com>
2018-04-01avfilter/af_amix: add weights optionPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-01avfilter/showvolume : indent after prev commit and add commentMartin Vignali
2018-04-01avfilter/showvolume : move width test for draw volume to the start of the loopMartin Vignali
2018-04-01avfilter/showvolume : move clear picture part to a funcMartin Vignali
and use it if fade == 0.
2018-04-01vf_libvmaf: Fix memory leakenctac
Fixes ticket #6967
2018-04-01avfilter/vf_signature: use av_strlcpy()Michael Niedermayer
Fixes: out of array access Found-by: Kira <kira_cxy@foxmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-04-01lavfi: add new iteration APIJosh de Kock
Signed-off-by: Josh de Kock <josh@itanimul.li>
2018-03-31avfilter/avf_showvolume: let fade be also exactly 0Paul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-03-31avfilter/showvolume : indent after prev commitMartin Vignali
2018-03-31avfilter/showvolume : calculate fade only if fade < 1.Martin Vignali
2018-03-31avfilter/showvolume : add comment for orientation conditionMartin Vignali
2018-03-29lavfi/silencedetect: Fix missing log at eosNicolas Gaullier
Fixes ticket #6968
2018-03-29lavfi/silencedetect: Fix silence_end accuracyNicolas Gaullier
2018-03-29lavfi/silencedetect: Fix silence_start accuracyNicolas Gaullier
2018-03-29lavfi/silencedetect: Fix when silence_start=0Nicolas Gaullier
0 is a valid value for silence_start
2018-03-29lavfi/silencedetect: Add mono modeNicolas Gaullier
In mono mode, silence is detected in any single channel instead of all of them simultaneously
2018-03-29avfilter/af_pan: reject expressions referencing the same channel multiple timesMarton Balint
Fixes parsing of expressions like c0=c0+c0 or c0=c0|c0=c1. Previously no error was thrown and for input channels, only the last gain factor was used, for output channels the source channel gains were combined. Signed-off-by: Marton Balint <cus@passwd.hu>
2018-03-27avfilter/vf_avgblur_opencl: fix error when clSetKernelArg failsdrfer3
Fixes Coverity CID 1430382.
2018-03-27vf_avgblur_opencl: Don't run kernel on pixels outside the imageMark Thompson
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>
2018-03-27libavfilter: Add OpenCL convolution filterDanil Iashchenko
Behaves like existing convolution filter. Signed-off-by: Mark Thompson <sw@jkqxz.net>
2018-03-26avfilter/af_mcompand: make error message more helpfulPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>