[PR] avformat/demux: don't require dimensions for PGS subtitles (PR #24258)
Kacper Michajłow via ffmpeg-devel <[email protected]>
| Newsgroups | gmane.comp.video.ffmpeg.devel |
|---|---|
| Message-ID | <[email protected]> |
PR #24258 opened by Kacper Michajłow (kasper93) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24258 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24258.patch Sparse PGS streams rarely deliver a display segment inside the probe window. Don't fail on that normal situation. From 3c86e4624eac26584d960ce9fe1b7ac929777c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <[email protected]> Date: Tue, 25 Aug 2026 01:37:59 +0200 Subject: [PATCH] avformat/demux: don't require dimensions for PGS subtitles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sparse PGS streams rarely deliver a display segment inside the probe window. Don't fail on that normal situation. Signed-off-by: Kacper Michajłow <[email protected]> --- libavformat/demux.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavformat/demux.c b/libavformat/demux.c index da0f5853cc..58cc265145 100644 --- a/libavformat/demux.c +++ b/libavformat/demux.c @@ -2124,8 +2124,6 @@ static int has_codec_parameters(const AVStream *st, const char **errmsg_ptr) FAIL("no frame in rv30/40 and no sar"); break; case AVMEDIA_TYPE_SUBTITLE: - if (avctx->codec_id == AV_CODEC_ID_HDMV_PGS_SUBTITLE && !avctx->width) - FAIL("unspecified size"); break; case AVMEDIA_TYPE_DATA: if (avctx->codec_id == AV_CODEC_ID_NONE) return 1; -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]