[FFmpeg-devel] [PATCH] avformat/matroskadec: Accept WebVTT subtitles with empty cues

Marcos Del Sol Vives marcos at orca.pet
Tue May 20 12:26:21 EEST 2025


Fixes: #11493
---
 libavformat/matroskadec.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 29e35e6dd4..2750652c51 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -3824,9 +3824,6 @@ static int matroska_parse_webvtt(MatroskaDemuxContext *matroska,
         text_len = len;
     }
 
-    if (text_len <= 0)
-        return AVERROR_INVALIDDATA;
-
     err = av_new_packet(pkt, text_len);
     if (err < 0) {
         return err;
-- 
2.34.1



More information about the ffmpeg-devel mailing list