Linux 7.4-rc3

15 November 22:30 - Linux Kernel - Linus Torvalds

fairy: add the project facts for Forgejo Fairy reviews

15 November 21:41 - FFmpeg - Michael Niedermayer

Forgejo Fairy reads this file from the default branch and includes it in the prompts of its reviews.

avfilter/vf_median: move 16-bit per-row histograms off the stack

15 November 09:05 - FFmpeg - Jun Zhao

filter_plane() declares coarse[BINS], fine[BINS][BINS] and luc[BINS] as on-stack arrays reset on each row.

avformat/movenc: fix global sidx fragment offsets

15 November 06:36 - FFmpeg - jiangjie

Use moof-relative addressing when global sidx shifts fragmented data, unless absolute offsets are already avoided or no sidx is inserted, and test it in api-movenc-test.


avutil/cpu: add AVX-VNNI flag

14 November 15:14 - FFmpeg - Kieran Kunhya

AVX-VNNI is the VEX-coded form of the VNNI dot products (vpdpbusd(s), vpdpwssd(s)) on xmm and ymm registers.

avcodec/opus/dec: do not let the NB SILK resampler hold back samples

14 November 05:05 - FFmpeg - Baptiste Coudurier

The SILK resampler is primed with 4, 8 or 11 input samples of silence for NB, MB and WB, which sets the decoder delay.


avcodec/vp3: take new Theora headers from packet side data

13 November 16:22 - FFmpeg - Romain Beauxis

A chained Ogg Theora link has its own headers and starts a new logical stream, which the decoder only takes up from header packets and without frame threading.

avformat/ogg/mapping/theora: pass a later link's headers to the decoder

13 November 16:22 - FFmpeg - Romain Beauxis

When a chained stream moves to a new link, its headers are passed on as packets, which the decoder refuses with frame threading.

avformat/ogg/muxer: start a new Theora link on new extradata

13 November 16:22 - FFmpeg - Romain Beauxis

A stream copied chained Theora file keeps the headers of each later link, so the copy decodes as the original.

avcodec/amfenc: Replace hardcoded lookahead maximum with runtime query

13 November 10:29 - FFmpeg - Ling, Edison

Replace the hardcoded preanalysis lookahead maximum with the maximum reported by AMF at runtime.

avcodec/proresenc: write only RDD 36 colour codes in the frame header

13 November 06:08 - FFmpeg - Baptiste Coudurier

prores_ks wrote reserved codes as-is and prores_aw dropped equivalent ones; map bt470bg matrix and bt601/bt2020 transfers to their codes, others to unspecified.

avformat/mpegts: avoid ~131 KiB stack frames in PAT/PMT callbacks

13 November 03:10 - FFmpeg - Jun Zhao

5a75d905cb24 added stream_groups[MAX_STREAMS_PER_PROGRAM] to struct Program, making it 134688 bytes on 64-bit targets.


avcodec/h264: base the output POC reset on the delayed picture count

12 November 22:05 - FFmpeg - Nil Fons Miret

An SPS change at an IDR can increase the decoder's reorder delay from zero.

avcodec/g723_1dec: add a flush callback

12 November 21:44 - FFmpeg - Patrick Domack

The decoder had no flush callback, so after a seek it kept the LSP, excitation, filter, postfilter and comfort noise state from before the seek.

avcodec/g723_1dec: follow Annex A when the first SID frame is lost

12 November 21:44 - FFmpeg - Patrick Domack

An untransmitted frame right after an active frame means the SID frame that should have started the silence was lost.

avcodec/g723_1dec: zero the synthesis input on the third lost frame

12 November 21:44 - FFmpeg - Patrick Domack

On the third lost active frame in a row the ITU reference sets the excitation to zero, so the synthesis filter only rings out its memory (DS2-Anywhere SPEC.md section 4.9).

avcodec/g723_1dec: start as if the previous frame was active

12 November 21:44 - FFmpeg - Patrick Domack

The ITU reference starts with the previous frame type set to active (DS2-Anywhere SPEC.md section 3).

avcodec/g723_1: saturate the negated LPC coefficients like the reference

12 November 21:44 - FFmpeg - Patrick Domack

The ITU reference computes each LPC coefficient as neg16(round16(x)), and neg16(-32768) saturates to 32767 (DS2-Anywhere SPEC.md section 4.3.2, step 4).

avcodec/g723_1dec: saturate the synthesis filter like the reference

12 November 21:44 - FFmpeg - Patrick Domack

The ITU reference runs the LPC synthesis filter in 32 bits and saturates the sum after every product (DS2-Anywhere SPEC.md section 4.7).

avcodec/g723_1dec: round the reflection coefficient like the reference

12 November 21:44 - FFmpeg - Patrick Domack

The formant postfilter's tilt follows the first reflection coefficient k of each subframe (DS2-Anywhere SPEC.md section 4.8.1, step 5).

avcodec/g723_1dec: skip the saturating sums where they cannot saturate

12 November 21:44 - FFmpeg - Guillain d'Erceville

The previous commits saturate the synthesis and formant filters after every product, as the reference does.

avformat/vorbis/comment: move the Vorbis comment reader out of the Ogg demuxer

12 November 16:49 - FFmpeg - Romain Beauxis

The reader moves from oggparsevorbis.c to vorbis/comment/reader.c and its declarations to vorbis/comment.h, next to the writer.

avfilter/vf_vpp_amf: add VPE hardware path

12 November 16:03 - FFmpeg - Dmitrii Gershenkop

Add initial support for Video Processing Engine (VPE) as a hardware accelerator option for AMF VPP.

avformat: add a seek_flags option

12 November 13:50 - FFmpeg - Romain Beauxis

seek2any adds one flag to every seek, so each other flag would need an option of its own.

avcodec/aacenc: make psychoacoustic window-count bound explicit

12 November 00:49 - FFmpeg - lusoris

GCC 16.2.1 reports -Wstringop-overflow in frame encoding because the psychoacoustic window count, which comes from an indirect model callback, is not visibly bounded before it indexes the per-window arrays.


swscale/yuv2rgb: write the last pixel of odd width rows

11 November 21:41 - FFmpeg - Dom Cobley

The C YUV420P/YUV422P/YUVA420P to RGB converters process each row in blocks of 8, 4 and 2 pixels, so for an odd output width the final pixel of every row was never written and kept whatever was in the destination buffer. The unscaled path selection only rejects odd heights, and the ARM and AArch64 NEON versions require widths divisible by 16, so on those platforms odd widths always reach this code.

avformat/demux: ignore corrupt packets when estimating the frame rate

11 November 19:50 - FFmpeg - Baptiste Coudurier

A corrupt packet may hold only part of a frame, which skews the average frame rate estimated from the few probed packets.

avcodec/x86/cabac: remove the cmov-free x86-64 PIC version of get_cabac

11 November 16:01 - FFmpeg - Ramiro Polla

HAVE_FAST_CMOV is only disabled on x86-64 when configuring with--cpu=pentium4, pentium4m, prescott or nocona (or --cpu=host on these CPUs), on which cmov is supported but slow.

avcodec/x86/cabac: improve ILP of the get_cabac LPS range lookup

11 November 16:01 - FFmpeg - Ramiro Polla

Each decision computes its range from the range of the previous one, so the instructions that go from one range to the next are the critical path of get_cabac, and their latency limits decoding speed. The LPS range lookup in the x86-64 PIC version builds its table address from the state and two bits of the range.

avcodec/x86/cabac: improve ILP of the get_cabac renormalisation shift

11 November 16:01 - FFmpeg - Ramiro Polla

Each decision computes its range from the range of the previous one, so the instructions that go from one range to the next are the critical path of get_cabac, and their latency limits decoding speed. The renormalisation shift in the x86-64 PIC version was looked up from the new range, so the lookup had to wait for the MPS/LPS decision.

avcodec/x86/cabac: use the x86-64 version of get_cabac on non-PIC builds too

11 November 16:01 - FFmpeg - Ramiro Polla

The x86-64 version of the get_cabac inline asm keeps the address of the tables in a register.

avcodec/x86/cabac: use tzcnt for the get_cabac refill shift unconditionally

11 November 16:01 - FFmpeg - Ramiro Polla

The refill shift is the number of trailing zeros in low minus 16.

avcodec/x86/cabac: share the get_cabac refill between x86-64 and x86-32

11 November 16:01 - FFmpeg - Ramiro Polla

Both versions of get_cabac now use the same tzcnt refill, so define it only once.

avcodec/vulkan_decode: retry the AV1 profile query without filmGrainSupport

11 November 15:24 - FFmpeg - Marcos Ashton Iglesias

Drivers without it, like ANV, rejected every AV1 stream by default; sequences with film grain still fail there unless it is exported.

avformat/shared: add -cache_key option

11 November 14:53 - FFmpeg - Niklas Haas

There are a number of cases in which deriving the filename from a hash of the URL is not ideal: For example, when the URL embeds parameters that don't affect the underlying file data, or when the user wants to be able to clean up or access the cache files directly, e.g.