Commit Graph

255 Commits

Author SHA1 Message Date
openvela-robot 55479ce52c fftools/ffmpeg_dec: improve detection of lavf-guessed durations
Will be useful in following commit.
2026-04-20 20:52:35 +08:00
openvela-robot d28421c90e FFMPEG: expand mq maxmsg to 16
Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-04-20 20:52:26 +08:00
openvela-robot f22fadc714 avformat/dump: only print yaw, pitch, and roll if set
Signed-off-by: James Almer <jamrial@gmail.com>
2026-04-20 20:52:14 +08:00
openvela-robot dd9c922b71 FFMPEG: Optimize ff_nuttx_drain_buffer
Signed-off-by: renjianguang <renjianguang@xiaomi.com>
2026-04-20 20:52:10 +08:00
openvela-robot 4994c9941f tests/fate/filter-audio.mak: add test for atempo audio filter
Signed-off-by: Rajiv Harlalka <rajivharlalka009@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 20:52:05 +08:00
openvela-robot f870472bab FFMPEG: Fix always enqueue buffer to the driver when paused
Signed-off-by: renjianguang <renjianguang@xiaomi.com>
2026-04-20 20:52:01 +08:00
openvela-robot 5bc46fad3f avcodec/vvcdec: Fix compiling with MSVC 2022 17.8 and older
Versions of MSVC older than 17.9 error out here with the following
error:

    src/libavcodec/vvc/filter.c(815): error C2059: syntax error: '}'
    src/libavcodec/vvc/filter.c(832): error C2065: 'all_zero_bs': undeclared identifier
    src/libavcodec/vvc/filter.c(836): error C2065: 'all_zero_bs': undeclared identifier

This was a regression from 5b9320b209c727ab2df3e76f77aad676f986c8e4.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 20:51:50 +08:00
openvela-robot 179ff56f31 FFMPEG: Enqueue the remaining data to driver when playback underflow
Signed-off-by: renjianguang <renjianguang@xiaomi.com>
2026-04-20 20:51:46 +08:00
openvela-robot 0b0dc46151 tools/target_dec_fuzzer: Adjust threshold for jpeg2000
Fixes: Timeout
Fixes: 57385/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5394334324490240

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 20:51:43 +08:00
openvela-robot 45b14f899c FFMPEG: clear final flag before enqueue
the final flag should be cleared before enqueue, otherwise the loop could be blocked by the final flag.

Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2026-04-20 20:51:31 +08:00
openvela-robot 0986b39270 MAINTAINERS: Update the entries for the release maintainer for FFmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 20:51:15 +08:00
openvela-robot 328953e3c5 ffmpeg:fix build warning in sim/m64
Signed-off-by: fangyibo <fangyibo@xiaomi.com>
2026-04-20 20:51:11 +08:00
openvela-robot 333b84b8d1 avcodec/h265_metadata: Add options to set width/height after crop
It's a common usecase to request a video size after crop. Before
this patch, user must know the video size before crop, then set
crop_right/crop_bottom accordingly. Since HEVC can have different
CTU size, it's not easy to get/deduce the video size before crop.
With the new width/height options, there is no such requirement.

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2026-04-20 20:50:43 +08:00
openvela-robot ee91b60ce0 audio:add nuttx_enc lastpkt for count latency
add nuttx_enc lastpkt for count latency

Signed-off-by: shipei <shipei@xiaomi.com>
2026-04-20 20:50:39 +08:00
openvela-robot 4c0f0ba0fb libavcodec/libxvid: code cleanup (replace magic numbers) 2026-04-20 20:50:36 +08:00
openvela-robot 09c5d5b854 FFMPEG: Fix the inaccurate pts value of offload recorder
Signed-off-by: renjianguang <renjianguang@xiaomi.com>
2026-04-20 20:50:32 +08:00
openvela-robot 7b5d8cac3a libavcode/x86/vvc: change label to vvc_sad_16 to reflect block sizes
According to the VVC specification (section 8.5.1), the maximum width/height of a subblock passed for DMVR SAD is 16. This along with previous constraint requiring width * height >= 128 means that  8x16, 16x8, and 16x16 are the only allowed sizes. This re-labels vvc_sad_16_128 to vvc_sad_16 to reflect this and adds a comment about the block size constraints. There's no functionality change.
2026-04-20 20:50:15 +08:00
openvela-robot a9bd2a22c2 FFMPEG: Support opus offload encoding
Signed-off-by: renjianguang <renjianguang@xiaomi.com>
2026-04-20 20:50:03 +08:00
openvela-robot a6d0ac50e3 lavc/vc1dsp: R-V V mspel_pixels
C908 X60
vc1dsp.avg_vc1_mspel_pixels_tab[0][0]_c            :  14.7 13.2
vc1dsp.avg_vc1_mspel_pixels_tab[0][0]_rvv_i32      :   2.5  2.2
vc1dsp.avg_vc1_mspel_pixels_tab[1][0]_c            :   3.7  3.5
vc1dsp.avg_vc1_mspel_pixels_tab[1][0]_rvv_i64      :   1.0  1.2
vc1dsp.put_vc1_mspel_pixels_tab[0][0]_c            :   9.0  8.0
vc1dsp.put_vc1_mspel_pixels_tab[0][0]_rvi          :   1.0  1.0
vc1dsp.put_vc1_mspel_pixels_tab[1][0]_c            :   2.5  2.2
vc1dsp.put_vc1_mspel_pixels_tab[1][0]_rvi          :   0.5  0.5

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2026-04-20 20:49:43 +08:00
openvela-robot 4253848f6b FFMPEG: add dsp reboot event notify
Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-04-20 20:49:40 +08:00
openvela-robot a0557ef6a5 lavc/flacdsp: fix CPU requirement for 32-bit LPC 2026-04-20 20:49:36 +08:00
openvela-robot 34879f9974 bluelet: reset 'available' flag when audio path re-setup, avoid this flag is unknown
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2026-04-20 20:49:32 +08:00
openvela-robot dcf5811164 aacdec: restore arm32 dequantization optimizations
Unintentionally removed as part of 03cf10164578aed33f4d0cb5b69d63669c01a538.
Untested, but its assumed that unlike most of the old ARM code,
this one was still working.
2026-04-20 20:49:26 +08:00
openvela-robot b2154224c5 FFMPEG: add caller context for avfilter-graph-reconfig.
Signed-off-by: zhushiqshi <zhushiqshi@xiaomi.com>
2026-04-20 20:49:19 +08:00
openvela-robot c92e82adc1 lavc/vaapi_encode_av1: implement write_extra_header callback
This can be used to insert a metadata OBU to the stream later.

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2026-04-20 20:49:14 +08:00
openvela-robot ab3d02e4d0 FFMPEG: add additonal start for short data
When using offload path to play short audio, if the audio data cannot fill the buffer, it may not enter the start branch, so we need to start playing after draining the buffer.

Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2026-04-20 20:49:10 +08:00
openvela-robot 9acee1cbfc avfilter/af_volume: Don't free options manually
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2026-04-20 20:49:06 +08:00
openvela-robot 81c68ca475 FFmpeg: bluelet muxer output poll_available duration for debug
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2026-04-20 20:49:02 +08:00
openvela-robot b405181bc9 lavu/riscv: fix build without <sys/hwprobe.h> 2026-04-20 20:48:58 +08:00
openvela-robot c22c375228 FFMPEG: add offload volume control
Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2026-04-20 20:48:54 +08:00
openvela-robot e32eca295c avformat/file: fail for non-numerical arguments to pipe:
Before this patch, the implementation of pipe: inputs/outputs would
silently fall back to stdin/stdout for any argument not successfully
parsed by strtol().

This patch introduces an explicit error for any non-numerical arguments,
which should avoid user confusion as in #10977.

New behavior:

$ cat /tmp/video.mkv | ./ffmpeg -i pipe:aa -acodec copy -vcodec copy -f matroska pipe:1 | cat >/tmp/out.mkv

[pipe @ 0x5618c7bcf740] Non-numerical argument "aa" to pipe:
[in#0 @ 0x5618c7bced00] Error opening input: Invalid argument
Error opening input file pipe:aa.
Error opening input files: Invalid argument

Based on the patch of Nils Goroll <nils.goroll@uplex.de>.

Signed-off-by: Marton Balint <cus@passwd.hu>
2026-04-20 20:48:49 +08:00
openvela-robot dcb122c263 FFMPEG: change underflow log level from info to warning
Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2026-04-20 20:48:45 +08:00
openvela-robot 12df655bb3 avformat/mov: support SpatialAudioBox ambisonic layouts with arbitrary channel mapping
Signed-off-by: James Almer <jamrial@gmail.com>
2026-04-20 20:48:35 +08:00
openvela-robot 1bef6d7103 FFMPEG: adjust ioctrl sequence RESUME after ENQUEUE
Signed-off-by: hanqiyuan <hanqiyuan@xiaomi.com>
2026-04-20 20:48:31 +08:00
openvela-robot f61d8b5e47 avcodec/huffyuvdec: Don't zero unnecessarily
A decoder's private data has already been zeroed (apart from options)
before init is called.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2026-04-20 20:47:42 +08:00
openvela-robot 519c62b47c FFMPEG: switched to ch_layout for adevsink.
Signed-off-by: zhushiqshi <zhushiqshi@xiaomi.com>
2026-04-20 20:47:36 +08:00
openvela-robot 4c77c353f0 avformat/mov: simplify the entry count overflow check in the keys atom
Suggested-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2026-04-20 20:47:19 +08:00
openvela-robot 0aa2c85b42 FFMPEG: add log when enqueue eos buffer
Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2026-04-20 20:47:15 +08:00
openvela-robot 22b4dd2b39 avutil/hwcontext_qsv: Fix mixed declaration and code
Reviewed-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2026-04-20 20:46:53 +08:00
openvela-robot 7eb5d0d0c3 ffmpeg: do not reset codec config for A2DP stream when audio stopped.
Signed-off-by: gaozihao <gaozihao@xiaomi.com>
2026-04-20 20:46:49 +08:00
openvela-robot acced26ec4 aarch64: Fix ff_hevc_put_hevc_epel_h48_8_neon_i8mm
The first 32 elements of each row were correct, while the
last 16 were scrambled.

This hasn't been noticed, because the checkasm test erroneously
only checked half of the output (for 8 bit functions), and
apparently none of the samples as part of "fate-hevc" seem to
trigger this specific function.

Signed-off-by: J. Dekker <jdek@itanimul.li>
2026-04-20 20:46:14 +08:00
openvela-robot 9dd48b8de5 bluelet: fix busyloop when rpmsgsocket recv return 0
root cause: rpmsg socekt recieved POLLIN event when rpsmg unbinded

Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2026-04-20 20:46:10 +08:00
openvela-robot 8623c6e0e2 avfilter: update filter timeline state only on main link
At present, consume_update evaluates timeline state on all links for
a multi-input filter. This can lead to the filter being incorrectly
en/dis-abled when evaluation on a frame on a secondary link leads to
a different result than the frame on the current main link next in
line for processing.
2026-04-20 20:46:01 +08:00
openvela-robot f7f513eb22 external/ffmpeg: add offloding audio recording with amr format.
dependson:3843703

Signed-off-by: xumin6 <xumin6@xiaomi.com>
2026-04-20 20:45:58 +08:00
openvela-robot ec42899a08 lavfi/vulkan_filter: fix input format
Otherwise s->input_format is always yuv420p.

This fixes invalid output format for hwframe download in the command
below:
./ffmpeg -init_hw_device vulkan -f lavfi \
	-i testsrc=duration=1,format=nv12 \
	-vf 'hwupload,format=vulkan,scale_vulkan=1024:768,hwdownload,format=nv12' \
	-f null -

Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2026-04-20 20:45:50 +08:00
openvela-robot 84e087c8a7 FFMPEG: fixed video delay when play agian.
Signed-off-by: zhushiqshi <zhushiqshi@xiaomi.com>
2026-04-20 20:45:46 +08:00
openvela-robot 3c330cd664 avformat: add a Tile Grid stream group type
This will be used to support tiled image formats like HEIF.

Signed-off-by: James Almer <jamrial@gmail.com>
2026-04-20 20:45:22 +08:00
openvela-robot adc625357f FFMPEG: skip RESUME for PLAY incase not running
Signed-off-by: hanqiyuan <hanqiyuan@xiaomi.com>
2026-04-20 20:45:19 +08:00
openvela-robot f4970d18ca lavc/vvc_ps: Correct vaule of ALF_NUM_FILTERS_CC
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
2026-04-20 20:45:12 +08:00
openvela-robot ecf42320f3 FFMPEG: avoid pcm codec id been overwritten
Missing else statement may cause other formats like mp3 to overwrite PCM

Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2026-04-20 20:45:01 +08:00
openvela-robot 6a58a564dc avformat/mpegts: add a ts_id exported option
It will replace AVFormatContext.ts_id in the coming bump.

Signed-off-by: James Almer <jamrial@gmail.com>
2026-04-20 20:44:49 +08:00
openvela-robot 3af83178c9 FFMPEG: unref last_pkt before flush to avoid ENQUEUE after FLUSH
Signed-off-by: hanqiyuan <hanqiyuan@xiaomi.com>
2026-04-20 20:44:46 +08:00
openvela-robot 7f54c8e608 .mailmap: update my mailmap entry 2026-04-20 20:44:28 +08:00
openvela-robot e15ef0bb20 FFMPEG: audio offload device completed.
dependson:3767211

Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2026-04-20 20:44:24 +08:00
openvela-robot edd6535005 avcodec/aac_defines: Remove unused AAC_RENAME_32
Unused since fbe6a51b11e20c5dfe076877f02d2bbb2300005d.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2026-04-20 20:44:15 +08:00
openvela-robot 521c0b3a62 ffmpeg: display fds in dump message.
Signed-off-by: jihandong <jihandong@xiaomi.com>
2026-04-20 20:44:11 +08:00
openvela-robot 1ed4bb4229 lavc: move bitstream filters into bsf/ subdir 2026-04-20 20:44:05 +08:00
openvela-robot 85cab6323e ffmpeg: add dequeue time log for libavdevice/nuttx.c
Signed-off-by: liuwei35 <liuwei35@xiaomi.com>
2026-04-20 20:44:01 +08:00
openvela-robot b695919241 avformat/mxfenc: remove unused variables
Produces a -Wunused-variables warning with -Wall.

Signed-off-by: Leo Izen <leo.izen@gmail.com>
2026-04-20 20:43:57 +08:00
openvela-robot 3d07f112d6 FFMPEG: rename flush_buffer to drain_buffer.
drain_buffer means all data in buffer push to driver.
flush_buffer means discard data.

Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2026-04-20 20:43:44 +08:00
openvela-robot 81e553beff configure: Enable section_data_rel_ro for FreeBSD and NetBSD aarch64 / arm
Fixes the build. It's a requirement when utilizing PIE.

Signed-off-by: Brad Smith <brad@comstyle.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 20:43:12 +08:00
openvela-robot 77cf539bac libavdevice/nuttx: Continue ff_nuttx_write_data if nuttx_write_lastpacket return success
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 20:43:08 +08:00
openvela-robot 9aafe74e04 avcodec/mediacodecenc: set quality in cq mode
From AOSP doc, these values are device and codec specific, but lower
values generally result in more efficient (smaller-sized) encoding.

For example, global_quality 50 on Pixel 6 results a 1080P 30 FPS
HEVC with 3744 kb/s, while global_quality 80 results 28178 kb/s.

Fix #10689

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2026-04-20 20:42:58 +08:00
openvela-robot a09786d4e7 libavdevice/nuttx: Remove the internal argument from ff_nuttx_close and ff_nuttx_poll_available
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 20:42:54 +08:00
openvela-robot 1af89cd12b checkasm: Remove unnecessary const on scalar parameters
The ffmpeg coding style doesn't usually use const on scalar
parameters (or on the pointer values - as opposed to the type
that is pointed to, where it has a semantic meaning), contrary
to the dav1d coding style (where this was imported from).

This avoids warnings about differences in the type signatures
between declaration and definition of this function, with older
versions of MSVC.

The issue was observed with one version of MSVC 2017,
19.16.27024.1, with warnings like these:

    src/tests/checkasm/checkasm.c(969): warning C4028: formal parameter 3 different from declaration

The warning itself is bogus as the const here is harmless, and
newer versions of MSVC no longer warn about this.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 20:42:50 +08:00
openvela-robot 6dd0283a39 FFMPEG: optimzied seek from videosink.
VELAPLATFO-20277:VELAPLATFO-10349

Signed-off-by: zhushiqshi <zhushiqshi@xiaomi.com>
2026-04-20 20:42:47 +08:00
openvela-robot 0001fb3aab swr/swresample: avoid reapplication of firstpts
During a resampling operation where

1) user has specified first_pts
2) SWR_FLAG_RESAMPLE is not set initially (directly or otherwise)
3) first_pts has been fulfilled (always using hard compensation)

then upon first encountering a delay where a soft compensation is
required, swr_set_compensation will lead to another init of swr which
will reset outpts to the specified firstpts thus leading to an output
frame having its pts = firstpts. When the next input frame is received,
swr will see a large delay and inject silence from firstpts to the
current frame's pts. This can lead to severe desync and in worst case,
loss of audio playback.

Parameter firstpts initialized to AV_NOPTS_VALUE in swr_alloc and then
checked in swr_init to avoid resetting outpts, thus avoiding reapplication
of firstpts.

Fixes #4131.
2026-04-20 20:42:42 +08:00
openvela-robot 86e9ddf140 libavdevice/nuttx: Remove the forward declaration of nuttx_cap_class
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 20:42:39 +08:00
openvela-robot 126fd3df8e fftools/ffmpeg_mux: stop logging to AVFormatContext
Only the muxer itself is supposed to do that. Log to OutputStream
instead.

Drop now-redundant information from the logged string.
2026-04-20 20:42:35 +08:00
openvela-robot 23f9283d04 libavdevice/nuttx: Move playback flag from ff_nuttx_open to ff_nuttx_init
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 20:42:32 +08:00
openvela-robot e1b856790e fftools/ffmpeg_filter: move FilterGraph.graph to FilterGraphThread
The AVFilterGraph is fully owned by the filtering thread and should
never be accessed outside of it.
2026-04-20 20:42:18 +08:00
openvela-robot 6cbd503ff4 FFMPEG: optimized timestamp calc.
Signed-off-by: zhushiqshi <zhushiqshi@xiaomi.com>
2026-04-20 20:42:10 +08:00
openvela-robot 5ffef14821 lavc/vc1dsp: R-V V inv_trans
C908:
vc1dsp.vc1_inv_trans_4x4_dc_c:      125.7
vc1dsp.vc1_inv_trans_4x4_dc_rvv_i32: 53.5
vc1dsp.vc1_inv_trans_4x8_dc_c:      230.7
vc1dsp.vc1_inv_trans_4x8_dc_rvv_i32: 65.5
vc1dsp.vc1_inv_trans_8x4_dc_c:      228.7
vc1dsp.vc1_inv_trans_8x4_dc_rvv_i64: 64.5
vc1dsp.vc1_inv_trans_8x8_dc_c:      476.5
vc1dsp.vc1_inv_trans_8x8_dc_rvv_i64: 80.2

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2026-04-20 20:42:03 +08:00
openvela-robot ba5e958295 ffmpeg: use hw field indicate samplerate
Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-04-20 20:41:59 +08:00
openvela-robot 5ae183910a avfilter/framesync: fix OOM case
Fixes OOM when caller keeps adding frames into filtergraph
that reached EOF by other means, for example EOF is signalled
by other filter in filtergraph or by buffersink.
2026-04-20 20:41:51 +08:00
openvela-robot a5fb28ffe7 FFMPEG:add 12K sample rate support in nuttx
Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2026-04-20 20:41:47 +08:00
openvela-robot 47f131f86b avfilter/asrc_afirsrc: fix by one smaller allocation of buffer 2026-04-20 20:41:40 +08:00
openvela-robot a48c3214c1 ffmpeg: add log when playback resume from suspend
Signed-off-by: liuwei35 <liuwei35@xiaomi.com>
2026-04-20 20:41:36 +08:00
openvela-robot 690989c4a1 x86/: clear the high bits for order in scalarproduct_and_madd functions
Should fix checkasm failures on win64.

Signed-off-by: James Almer <jamrial@gmail.com>
2026-04-20 20:41:33 +08:00
openvela-robot a76e7117f5 ffmpeg:optimize get channel_layouts for asrc_adevsrc filter
optimize get channel_layouts for asrc_adevsrc filter

Signed-off-by: shipei <shipei@xiaomi.com>
2026-04-20 20:41:29 +08:00
openvela-robot e061db2212 avcodec/mediacodecdec: fix return EAGAIN after EOF
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2026-04-20 20:41:26 +08:00
openvela-robot 53b56210d4 ffmpeg asrc_adevsrc:optimize channel layout rule for asrc_adevsrc
optimize channel layout add rule for asrc_adevsrc,one nb_channel has more then one channle layouts

Signed-off-by: shipei <shipei@xiaomi.com>
2026-04-20 20:41:23 +08:00
openvela-robot e7c5903279 avcodec/h264dec: use BOOL for skip_gray, noref_gray
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 20:41:19 +08:00
openvela-robot eaca3c1a73 FFMPEG: handle av_opt_set_dict() av_opt_set_dict
CID 154902,CHECKED_RETURN

Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2026-04-20 20:41:16 +08:00
openvela-robot 0f76028c57 avfilter/af_afir: add irnorm and irlink options
Deprecate gtype option.
2026-04-20 20:41:05 +08:00
openvela-robot cd39d8cf3b ffmpeg:reconfig adevsrc when bt stop audio
rootcause:leaudio would update audio config when siwtch from one audio context
to another context, then ffmpeg need reconfig codecpar

Signed-off-by: chengkai <chengkai@xiaomi.com>
2026-04-20 20:40:55 +08:00
openvela-robot 3057396fb1 checkasm/flacdsp: fix ls/rs/ms tests
decorrelate_ls, _rs and _ms are decorrelate[1], [2] and [3] respectively.
The code ended up testing indep ([0]) as twice, ms never, and misnaming
the other two.
2026-04-20 20:40:51 +08:00
openvela-robot 0bc7138ff0 FFmpeg: adevsrc - free decoder context before reconfig
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2026-04-20 20:40:48 +08:00
openvela-robot d6651992a5 lavc/exrdsp: unroll predictor
With explicit unrolling, we can skip half of the sign bit flips, and
the compiler is then better able to optimise the scalar loop:

predictor_c: 31376.0 (before)
predictor_c: 23703.0 (after)
2026-04-20 20:40:43 +08:00
openvela-robot b2b9c6a401 external/ffmpeg: free last_pkt before packet clone
Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2026-04-20 20:40:39 +08:00
openvela-robot bef74ba2b0 lavc/sbrdsp: R-V V hf_gen
hf_gen_c:      2922.7
hf_gen_rvv_f32: 731.5
2026-04-20 20:40:36 +08:00
openvela-robot a1eb52566c FFMPEG: correct audio_lossless to pcm_lossless
many lossless audio format like ALAC.. but not pcm.

Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2026-04-20 20:40:32 +08:00
openvela-robot 6487581f73 avfilter/avf_showcwt: add fm frequency scaler 2026-04-20 20:40:27 +08:00
openvela-robot 82ad46de1c FFMPEG: add offload capture support.
dependson:3523124

Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2026-04-20 20:40:23 +08:00
openvela-robot e0334c73b6 lavc/sbrdsp: R-V V sbr_hf_g_filt
hf_g_filt_c:      1552.5
hf_g_filt_rvv_f32: 679.5
2026-04-20 20:40:17 +08:00
openvela-robot 2c90899a9d a2dp ctrl socket first POLLOUT before connection setup
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2026-04-20 20:40:14 +08:00
openvela-robot 5b6a01751e avutil/hwcontext_vulkan: fix memleak when device_create is skipped
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2026-04-20 20:39:56 +08:00
openvela-robot bd28cc34f0 ffmpeg: enable O_CLOEXEC explicit
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2026-04-20 20:39:52 +08:00
openvela-robot 0969389268 avfilter/vidstab: add option for file format specification
The vidstab library added support in Nov 2020 for writing/reading
the transforms data in binary in addition to ASCII. The library default
was changed to binary format but no changes were made to the AVfilters
resulting in data file for writing or reading being always opened as text.
This effectively broke the filters.

Option added to vidstabdetect to specify file format and open files in
both filters with the correct attributes.
2026-04-20 20:39:47 +08:00
openvela-robot 6ee516abc8 ffmpeg:fix latency abnormally when driver not ready to start
if latency not inited,it is abnormally when driver not ready to start,sometime it value like: latency:30401280

Signed-off-by: shipei <shipei@xiaomi.com>
2026-04-20 20:39:44 +08:00