PR #23172 opened by Marvin Scholz (ePirat)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23172
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23172.patch

It has been broken since 3064487.

(cherry picked from commit 1aefacfda4100b435f920ac20fe48651e1840b2b)
Signed-off-by: Marvin Scholz <[email protected]>


>From 27a2385d4f68ad71615ee92fcb92c5c2563ee36d Mon Sep 17 00:00:00 2001
From: Damiano Galassi <[email protected]>
Date: Wed, 29 Apr 2026 10:26:48 +0200
Subject: [PATCH] avformat/movenc: fix mov_create_dvd_sub_decoder_specific_info

It has been broken since 3064487.

(cherry picked from commit 1aefacfda4100b435f920ac20fe48651e1840b2b)
Signed-off-by: Marvin Scholz <[email protected]>
---
 libavformat/movenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index fe6b259561..c0900d1f5d 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -7779,7 +7779,7 @@ static int 
mov_create_dvd_sub_decoder_specific_info(MOVTrack *track,
     int i, width = 720, height = 480;
     int have_palette = 0, have_size = 0;
     uint32_t palette[16];
-    char *cur = track->extradata[track->last_stsd_index];
+    char *cur = st->codecpar->extradata;
 
     while (cur && *cur) {
         if (strncmp("palette:", cur, 8) == 0) {
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to