Commit b34f7f33f3 for ffmpeg
commit b34f7f33f3ff4f1794cdacc9edaecc7979a3ca16
Author: Michael Kuron <michael.kuron@gmail.com>
Date: Sun May 31 13:00:52 2026 +0200
dvdvideodec: respect forced and comment dispositions on subtitles
Signed-off-by: Michael Kuron <michael.kuron@gmail.com>
diff --git a/libavformat/dvdvideodec.c b/libavformat/dvdvideodec.c
index cf4c7962df..a796010e0f 100644
--- a/libavformat/dvdvideodec.c
+++ b/libavformat/dvdvideodec.c
@@ -1320,8 +1320,10 @@ static int dvdvideo_subp_stream_analyze(AVFormatContext *s, uint32_t offset, sub
entry->startcode = 0x20 + (offset & 0x1F);
- if (subp_attr.lang_extension == 9)
+ if (subp_attr.code_extension == 9)
entry->disposition |= AV_DISPOSITION_FORCED;
+ if (subp_attr.code_extension >= 13 && subp_attr.code_extension <= 15)
+ entry->disposition |= AV_DISPOSITION_COMMENT;
memcpy(&entry->clut, c->play_state.pgc->palette, FF_DVDCLUT_CLUT_SIZE);