This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new b34f7f33f3 dvdvideodec: respect forced and comment dispositions on 
subtitles
b34f7f33f3 is described below

commit b34f7f33f3ff4f1794cdacc9edaecc7979a3ca16
Author:     Michael Kuron <[email protected]>
AuthorDate: Sun May 31 13:00:52 2026 +0200
Commit:     Yalda <[email protected]>
CommitDate: Sat Nov 28 01:58:46 2026 +0000

    dvdvideodec: respect forced and comment dispositions on subtitles
    
    Signed-off-by: Michael Kuron <[email protected]>
---
 libavformat/dvdvideodec.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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);
 

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to