mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-16 20:10:09 +01:00
avformat/matroskadec: Accept WebVTT subtitles with empty cues
Fixes: #11493 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
9c6c653a46
commit
a79720e10f
@@ -3824,9 +3824,6 @@ static int matroska_parse_webvtt(MatroskaDemuxContext *matroska,
|
|||||||
text_len = len;
|
text_len = len;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (text_len <= 0)
|
|
||||||
return AVERROR_INVALIDDATA;
|
|
||||||
|
|
||||||
err = av_new_packet(pkt, text_len);
|
err = av_new_packet(pkt, text_len);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
return err;
|
return err;
|
||||||
|
|||||||
Reference in New Issue
Block a user