aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* avfilter/vf_transpose_vt: fix declaration-after-statementZhao Zhili2023-08-261-1/+2
| | | | Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
* avfilter/vf_transpose_vt: fix output frame dimensionZhao Zhili2023-08-261-5/+42
| | | | | | Create a new hardware frame context when necessary. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
* avfilter/vf_scale_vt: fix output frame dimensionZhao Zhili2023-08-261-0/+25
| | | | | | | The output frame dimension is incorrect because it shares hardware frame context with input. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
* lavfi/dnn: Add OpenVINO API 2.0 supportWenbin Chen2023-08-262-34/+487
| | | | | | | | | | | | OpenVINO API 2.0 was released in March 2022, which introduced new features. This commit implements current OpenVINO features with new 2.0 APIs. And will add other features in API 2.0. Please add installation path, which include openvino.pc, to PKG_CONFIG_PATH mannually for new OpenVINO libs config. Signed-off-by: Ting Fu <ting.fu@intel.com> Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
* avcodec/apedec: Fix 48khz 24bit below insane levelMichael Niedermayer2023-08-261-4/+13
| | | | | | | | | Fixes: Ticket9816 Fixes: vlc.ape and APE_48K_24bit_2CH_02_01.ape Regression since: ed0001482a74b60f3d5bc5cd7e304c9d65b2fcd5. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/apedec: Fix CRC for 24bps and bigendianMichael Niedermayer2023-08-261-3/+14
| | | | | | Fixes CRC for vlc.ape and APE_48K_24bit_2CH_02_01.ape Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/vulkan_decode: print also codec header nameKacper Michajłow2023-08-241-0/+3
| | | | Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
* avcodec/vulkan_decode: fix struct type for h265_profileKacper Michajłow2023-08-242-2/+2
| | | | Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
* lavfi/vf_xfade_vulkan: add wipesMarvin Scholz2023-08-241-0/+60
| | | | Add the wipetl, wipetr, wipebl, wipebr effects.
* lavfi/vf_xfade_vulkan: add pixelizeMarvin Scholz2023-08-241-0/+18
|
* lavfi/vf_xfade_vulkan: add dissolveMarvin Scholz2023-08-241-0/+20
|
* lavfi/vf_xfade_vulkan: reindent after last commitMarvin Scholz2023-08-241-19/+19
|
* lavfi/vf_xfade_vulkan: add circleopen/circlecloseMarvin Scholz2023-08-241-0/+37
|
* vulkan_h264: send scaling lists in zig-zag orderBenjamin Cheng2023-08-241-8/+10
| | | | | h264_ps turns the scaling lists into matrices with a raster scan order, but Vulkan wants the scaling lists as originally defined.
* avfilter/af_afade: add 4 more curvesPaul B Mahol2023-08-242-1/+29
|
* checkasm: hevc_sao: Fix a regression in hevc_sao_edgeMatthias Dressel2023-08-241-1/+1
| | | | | | | | check_func() might return NULL, in which case the function is not to be benched. Introduced in cc679054c715acda9438e566b8de3a9eba421ac3. Signed-off-by: Matthias Dressel <code@deadcode.eu> Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc/g722dsp: add RISC-V V DSP functionRémi Denis-Courmont2023-08-245-0/+111
|
* lavu/timer: specify RISC-V time unitRémi Denis-Courmont2023-08-241-0/+1
|
* lavu/timer: remove gratuitous volatileRémi Denis-Courmont2023-08-241-2/+2
| | | | AV_READ_TIME has no side effects. It does not need to be volatile.
* lavu/timer: use time for AV_READ_TIME on RISC-VRémi Denis-Courmont2023-08-241-6/+6
| | | | | | | | | | | | | | | So far, AV_READ_TIME would return the cycle counter. This posed two problems: 1) On recent systems, it would just raise an illegal instruction exception. Indeed RDCYCLE is blocked in user space to ward off some side channel attacks. In particular, this would cause the random number generator to crash. 2) It does not match the x86 behaviour and the apparent original intent of AV_READ_TIME in the functional code base (outside test cases). So this replaces the cycle counter with the time counter. The unit is a platform-dependent constant fraction of time, and the value should be stable across harts (RISC-V lingo for physical CPU thread).
* avcodec/wavarc: Check that nb_samples is not negativeMichael Niedermayer2023-08-231-2/+2
| | | | | | | | | | | It is currently probably not possible for it to be negative as the needed 2Mb input buf size is not achievable. But it is more robust to check for it too. If it would become negative than code like s->samples[0][n] = s->samples[0][s->nb_samples + n]; would crash Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/wavarc: Check shiftMichael Niedermayer2023-08-231-0/+12
| | | | | | | | Fixes: shift exponent 1285 is too large for 32-bit type 'int' Fixes: 60870/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVARC_fuzzer-5332050340347904 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/xvididct: Fix integer overflow in idct_row()Michael Niedermayer2023-08-231-12/+12
| | | | | | | | Fixes: signed integer overflow: -1403461578 + -843974775 cannot be represented in type 'int' Fixes: 60868/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG1VIDEO_fuzzer-4599793035378688 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/hls: reset the playlist init segment on seekTimo Rothenpieler2023-08-221-0/+3
| | | | | The mp4 demuxer gets very upset when it gets flushed and not re-fed this data.
* avcodec/nvenc: add option to limit slice sizeAleksoid2023-08-224-4/+19
|
* fate/matroska: Stop using unicode in command line paramtersMartin Storsjö2023-08-222-8/+8
| | | | | | | | | | | | | | | | The fate-run.sh shell script exports LC_ALL=C before invoking the test executables; this is probably done for consistency. When executing Windows binaries with Wine, it normally handles UTF-8 command line parameters just fine - but with LC_ALL set to C, it treats them as plain ASCII. As the unicode command line parameters wasn't the main thing being tested here, just convert them to plain ASCII, for portability. This fixes the test for all test configurations that use Wine. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Include objbase.h when checking for CoTaskMemFreeMartin Storsjö2023-08-211-1/+1
| | | | | | | | | | | | | ddc1cd5cdd2570bf3d6ab807ee0ecfacdf09431d defined WIN32_LEAN_AND_MEAN globally, which makes for much fewer transitive includes from windows.h. With that define, CoTaskMemFree no longer gets implicitly declared by just including windows.h, but one has to include the right header objbase.h too. That commit caused ole32 to no longer get detected, which caused dxva2 to no longer be enabled. This gets fixed by this patch. Signed-off-by: Martin Storsjö <martin@martin.st>
* avfilter/vf_ssim: Fix x86 assembly code for SSIM calculationEvgeny Pavlov2023-08-211-14/+11
| | | | | | | | | | | | This commit fixes bug #10495 The code had several bugs related to post-loop compensation code: - test assembly instruction performs bitwise AND operation and generate flags used by jz branch instruction. Wrong test condition leads to incorrect branching - Incorrect compensation code for some branches Signed-off-by: Evgeny Pavlov <lucenticus@gmail.com>
* hwcontext_vulkan: always use create_pnext in vulkan_pool_allocChris Spencer2023-08-201-1/+2
| | | | | | | | | | | | | Currently, create_pnext is only used if an applicable external memory extension is enabled. This will usually the case when used from the command line, but may not be when the Vulkan context is created manually. For images used in video decoding, create_pnext contains the video profile list, which is mandatory.[1] This fixes a GPU crash when using RADV. [1] https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkImageCreateInfo.html#VUID-VkImageCreateInfo-usage-04815 Signed-off-by: Chris Spencer <spencercw@gmail.com>
* avutil/thread: add wrappers for pthread_cond_t functionsJames Almer2023-08-191-0/+19
| | | | | | | | This abstraction is similar to the existing one for pthread_mutex_t and pthread_once_t functions, and should reduce the amount of ifdeffery used in future code. Signed-off-by: James Almer <jamrial@gmail.com>
* doc/APIChanges: remove bogus entryJames Almer2023-08-181-3/+0
| | | | | | New AVOptions in modules don't belong here. Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/channel_layout: make pre-defined channel layouts C++ friendlyZhao Zhili2023-08-183-4/+19
| | | | | | | | | | | | C++ doesn't support designated initializers until C++20. We have a bunch of pre-defined channel layouts, the gains to make them usable in C++ exceed the losses. Bump minor version so C++ project can check before use these defines. Also initialize .opaque field explicitly to reduce warning in C++. Signed-off-by: James Almer <jamrial@gmail.com>
* cbs_h266: slice_header, fix inference for pred_weight_tableNuo Mi2023-08-171-10/+9
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* cbs_h266: H266RawSliceHeader, expose NumRefIdxActive[]Nuo Mi2023-08-172-21/+21
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* cbs_h266: H266RawPredWeightTable, expose num_weights_l0 and num_weights_l1Nuo Mi2023-08-172-23/+23
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* cbs_h266: H266RawSliceHeader, expose NumEntryPointsNuo Mi2023-08-172-8/+12
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* cbs_h266: fix slice_height_in_ctus for single slice tileNuo Mi2023-08-171-0/+1
| | | | | | | | | Failed clips: TILE_E_Nokia_2.bit TILE_D_Nokia_2.bit LMCS_A_Dolby_3.bit Signed-off-by: James Almer <jamrial@gmail.com>
* cbs_h266: fix inference for xh_deblocking_filter_disabled_flagNuo Mi2023-08-171-48/+28
| | | | | | | | | | | if !ph_deblocking_params_present_flag is true, ph_deblocking_filter_disabled_flag infered from pps if !sh_deblocking_params_present_flag is true, sh_deblocking_filter_disabled_flag infered from ph Failed clips: ENT444MAINTIER_C_Sony_3.bit ENT444HIGHTIER_D_Sony_3.bit Signed-off-by: James Almer <jamrial@gmail.com>
* cbs_h266: fix inference for sh_alf_enabled_flagNuo Mi2023-08-171-34/+47
| | | | | | | | | | if pps_alf_info_in_ph_flag is true sh_alf_enabled_flag infered from ph Failed clip: LTRP_A_ERICSSON_3.bit Signed-off-by: James Almer <jamrial@gmail.com>
* cbs_h266: fix inference for sh_lmcs_used_flag and ↵Nuo Mi2023-08-171-10/+14
| | | | | | | | | | | | | sh_explicit_scaling_list_used_flag if sh_picture_header_in_slice_header_flag is true sh_lmcs_used_flag and sh_explicit_scaling_list_used_flag are infered from ph Failed clips: LMCS: CLM_A_KDDI_2.bit STILL444_A_KDDI_1.bit Scaling: SCALING_B_InterDigital_1.bit SCALING_A_InterDigital_1.bit Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/exr: tag gamma=1.0 output as linear lightLeo Izen2023-08-171-0/+2
| | | | | | | | | By default the OpenEXR decoder outputs linear light pixel data by applying a gamma=1.0 transfer (i.e. a no-op). When it does so, it should tag the data as linear so color-managed filters or other tools can work with it correctly. Signed-off-by: Leo Izen <leo.izen@gmail.com>
* libavfilter/vf_vpp_qsv: Fix a timestamp bug when framerate is not setWenbin Chen2023-08-171-1/+4
| | | | | | | | | | If user doesn't set framerate when he creates a filter, the filter uses default framerate {0, 1}. This causes error when setting timebase to 1/framerate. Now change it to pass inlink->time_base to outlink when framerate is not set. This patch fixes ticket: #10476 #10468 Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
* lavc/qsvenc: return error with zero outputHaihao Xiang2023-08-171-1/+1
| | | | Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
* lavc/qsvenc_hevc: restore the default gop sizeHaihao Xiang2023-08-171-1/+1
| | | | | | | | | | | | commit a3c0a3e changed the default settings and expected the runtime can choose a best value. However the runtime doesn't set a valid gop size for hevc encoder, hence the output steam is non-seekable, which is inconvenient to user [1][2] [1] https://github.com/intel/media-driver/issues/1576 [2] https://ffmpeg.org/pipermail/ffmpeg-user/2023-August/056716.html Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
* lavu/hwcontext_vaapi: Add vaapi_drm_format_map support for x2rgb10David Rosca2023-08-171-0/+3
| | | | | Support for allocating frames with x2rgb10 format was added in c00264f5013, this adds support for importing DMA-BUFs.
* avcodec/wavpack: fix indentationPaul B Mahol2023-08-161-1/+1
|
* avcodec/tta: fix minor code style issuesPaul B Mahol2023-08-163-6/+9
|
* avcodec/wavpack: reduce extra dereferencing inside loopsPaul B Mahol2023-08-161-60/+66
|
* avformat/sox*: extend long namePaul B Mahol2023-08-152-2/+2
|
* avformat/soxdec: improve probe a littlePaul B Mahol2023-08-151-3/+7
|