From 9f96c84b9e0bb04d519f8f7a974777cb8cea3102 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Wed, 8 Jul 2020 13:52:43 +0200 Subject: [PATCH] Makes the codec dvd_subtitle be recognized as an image subtitle --- .../net/knarcraft/ffmpegconverter/streams/SubtitleStream.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/knarcraft/ffmpegconverter/streams/SubtitleStream.java b/src/main/java/net/knarcraft/ffmpegconverter/streams/SubtitleStream.java index fd8431a..3ba216b 100644 --- a/src/main/java/net/knarcraft/ffmpegconverter/streams/SubtitleStream.java +++ b/src/main/java/net/knarcraft/ffmpegconverter/streams/SubtitleStream.java @@ -73,7 +73,8 @@ public class SubtitleStream extends AbstractStream implements StreamObject { * @return

True if the subtitle is image based.

*/ private boolean isImageSubtitle() { - return codecName != null && getCodecName().equals("hdmv_pgs_subtitle"); + return codecName != null && (getCodecName().equals("hdmv_pgs_subtitle") + || getCodecName().equals("dvd_subtitle")); } /**