Commit 2e8af63df1 for ffmpeg

commit 2e8af63df16ec13509c055d6e23340d1d98af120
Author: Romain Beauxis <romain.beauxis@gmail.com>
Date:   Sun Nov 22 17:42:27 2026 -0500

    avformat/ogg/muxer: check the Theora header size before reading the new frame rate

    The frame rate of a new link is read from its identification header,
    which can be shorter than the fields read. Such a header is then rejected
    when the new link is initialized.

diff --git a/libavformat/ogg/muxer.c b/libavformat/ogg/muxer.c
index 73790d52a1..98a49fbd53 100644
--- a/libavformat/ogg/muxer.c
+++ b/libavformat/ogg/muxer.c
@@ -710,7 +710,8 @@ static int ogg_theora_rate_changed(const AVStream *st, const uint8_t *extradata,
     int header_len[3];

     if (size > INT_MAX ||
-        avpriv_split_xiph_headers(extradata, size, 42, header, header_len) < 0)
+        avpriv_split_xiph_headers(extradata, size, 42, header, header_len) < 0 ||
+        header_len[0] < 42)
         return 0;
     return av_cmp_q(st->time_base,
                     (AVRational){ AV_RB32(header[0] + 26), AV_RB32(header[0] + 22) }) != 0;