Commit f712955fa5 for ffmpeg

commit f712955fa583771e389c2305a51f6f5a2b8930b1
Author: Romain Beauxis <romain.beauxis@gmail.com>
Date:   Sun Nov 22 15:31:43 2026 -0500

    avformat/ogg/muxer: flush the pages of every video stream on keyframes

    Theora and VP8, the only video codecs the muxer supports, end a page on
    keyframes and timestamp jumps. Select that by the media type rather than
    by codec, so that it does not depend on a codec list.

diff --git a/libavformat/ogg/muxer.c b/libavformat/ogg/muxer.c
index 5a7c5f1909..8805af9109 100644
--- a/libavformat/ogg/muxer.c
+++ b/libavformat/ogg/muxer.c
@@ -224,7 +224,7 @@ static int ogg_buffer_data(AVFormatContext *s, AVStream *st,
     // them as such, otherwise seeking will not work correctly at the very
     // least with old libogg versions.
     // Do not try to flush header packets though, that will create broken files.
-    if ((st->codecpar->codec_id == AV_CODEC_ID_THEORA || st->codecpar->codec_id == AV_CODEC_ID_VP8) && !header &&
+    if (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO && !header &&
         (ogg_granule_to_timestamp(oggstream, granule) >
          ogg_granule_to_timestamp(oggstream, oggstream->last_granule) + 1 ||
          ogg_key_granule(oggstream, granule))) {