summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
Diffstat (limited to 'sub')
-rw-r--r--sub/sd_lavc_conv.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sub/sd_lavc_conv.c b/sub/sd_lavc_conv.c
index 0c8160495c..ee783f08a4 100644
--- a/sub/sd_lavc_conv.c
+++ b/sub/sd_lavc_conv.c
@@ -40,20 +40,16 @@ static bool supports_format(const char *format)
const AVCodecDescriptor *desc = avcodec_descriptor_get(cid);
if (!desc)
return false;
-#if HAVE_AV_CODEC_PROP_TEXT_SUB
- // These are documented to support AVSubtitleRect->ass.
- return desc->props & AV_CODEC_PROP_TEXT_SUB;
-#else
+ // These are known to support AVSubtitleRect->ass.
const char *whitelist[] =
- {"text", "ass", "ssa", "mov_text", "srt", "subrip", "microdvd", "mpl2",
- "jacosub", "pjs", "sami", "realtext", "subviewer", "subviewer1",
+ {"text", "ass", "ssa", "srt", "subrip", "microdvd", "mpl2",
+ "jacosub", "pjs", "sami", "realtext", "subviewer", "subviewer1",
"vplayer", "webvtt", 0};
for (int n = 0; whitelist[n]; n++) {
if (strcmp(format, whitelist[n]) == 0)
return true;
}
return false;
-#endif
}
// Disable style definitions generated by the libavcodec converter.