Niklas Haas
2589ce4a2c
tests/swscale: unref buffers before each iteration
...
Otherwise, we always pass frames that already have buffers allocated, which
breaks the no-op refcopy optimizations.
Testing with -p 0.1 -threads 16 -bench 10, on an AMD Ryzen 9 9950X3D:
Before:
Overall speedup=2.776x faster, min=0.133x max=629.496x
yuv444p 1920x1080 -> yuv444p 1920x1080, flags=0x100000 dither=1
time=9 us, ref=9 us, speedup=1.043x faster
After:
Overall speedup=2.721x faster, min=0.140x max=574.034x
yuv444p 1920x1080 -> yuv444p 1920x1080, flags=0x100000 dither=1
time=0 us, ref=28 us, speedup=516.504x faster
(The slowdown in the legacy swscale case is from swscale's lack of a no-op
refcopy optimizaton, plus the fact that it's now actually doing memory
work instead of a no-op / redundant memset)
Signed-off-by: Niklas Haas <git@haasn.dev >
2026-03-11 08:05:08 +00:00
Niklas Haas
271bacffec
tests/swscale: exclude init time from benchmark
...
This was originally intended to also include performance gains/losses
due to complicated setup logic, but in practice it just means that changing
the number of iterations dramatically affects the measured speedup; which
makes it harder to do quick bench runs during development.
2026-03-11 08:05:08 +00:00
James Almer
a9984fec81
avcodec/lcevc_parser: check return value of init_get_bits8()
...
Fixes coverity issue CID 1684198.
Signed-off-by: James Almer <jamrial@gmail.com >
2026-03-10 15:50:20 -03:00
Lynne
215e22d1f1
ffv1enc_vulkan: fix typo
...
Fixes a segfault when host mapping is unsupported.
2026-03-10 19:31:00 +01:00
Diego de Souza
63e0a2add2
avcodec/nvenc: change default H.264 profile from main to high
...
The NVENC H.264 high profile provides up to 16% bitrate savings
(BD-Rate measured with VMAF) compared to the main profile.
Since most users do not explicitly set a profile, changing the
default benefits the common case. Users requiring the main profile
for legacy decoder compatibility can still set it explicitly.
The change is gated behind a versioned define so it only takes
effect on the next major version bump (libavcodec 63).
Signed-off-by: Diego de Souza <ddesouza@nvidia.com >
2026-03-10 15:08:16 +00:00
Andreas Rheinhardt
0afa879a69
avcodec/aac/aacdec_usac: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:19 +01:00
Andreas Rheinhardt
7e70503ed4
avcodec/vp5: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:19 +01:00
Andreas Rheinhardt
67217549c8
avcodec/get_bits: Rename macro variables to avoid shadowing
...
Especially 'n' often leads to shadowing, e.g. in mpeg12dec.c.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:19 +01:00
Andreas Rheinhardt
3343567482
avcodec/motion_est: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:19 +01:00
Andreas Rheinhardt
ac25aed6b3
avcodec/eatgq: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:19 +01:00
Andreas Rheinhardt
2d9cf94283
avfilter/vf_chromanr: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:19 +01:00
Andreas Rheinhardt
380e1cdb0c
avfilter/af_afftfilt: Don't get max align multiple times
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:19 +01:00
Andreas Rheinhardt
a4efdcaa53
avfilter/af_apsyclip: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:19 +01:00
Andreas Rheinhardt
b0839506d7
avfilter/vf_blurdetect: Fix shadowing
...
Also use smaller scope in general.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:19 +01:00
Andreas Rheinhardt
1bbac3643b
avfilter/avf_showspectrum: Avoid allocation
...
Also fixes an instance of shadowing.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:19 +01:00
Andreas Rheinhardt
7950e5d1a5
avcodec/rka: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:19 +01:00
Andreas Rheinhardt
0a1606f86c
avcodec/hpeldsp: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:19 +01:00
Andreas Rheinhardt
92046bcd7b
avcodec/cbs: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
06ea751c51
avcodec/mpegaudioenc: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
bffaa6aaab
avcodec/utvideodec: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
78f8ef341e
avcodec/wmaenc: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
c0ba18c527
avcodec/dv_tablegen: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
ba57a33351
avformat/id3v2: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
90dae166b5
avformat/http: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
8ddb82fd75
avformat/lafdec: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
1617feef50
avformat/asfdec_f: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
2ed4660960
avformat/rtpenc_mpegts: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
6de2565b8e
avformat/rtpdec_xiph: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
422ad600cd
avformat/oggparseopus: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
51ae4f443d
avcodec/cbs_av1_syntax_template: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
615d5c2715
avformat/dsfdec: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
1e440f2745
avformat/dovi_isom: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
9c0f942293
avformat/aviobuf: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
1778991846
avformat/avio: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
5962ca0c20
avformat/avidec: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
8f9239a869
avformat/mpc8: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
378928e79f
avformat/mpegtsenc: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
968511ad03
avformat/dhav: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
a49eed2fb1
avformat/oggenc: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
4014d35dda
avformat/bonk: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
5198d8802c
avformat/matroskadec: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
fd88a52be0
avformat/matroskaenc: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
7a0ae45bcf
avformat/rmenc: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
6aa367b9b3
avformat/smacker: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
54672d194c
avformat/srtpproto: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
b53752dc4c
avformat/tcp: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
619839ac16
avformat/tee: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
034b37a51d
avformat/vividas: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
a2a42aa404
avformat/vorbiscomment: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00
Andreas Rheinhardt
0037c5abdd
avformat/webpenc: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2026-03-10 13:52:18 +01:00