aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_subtitles.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-04-16 15:00:13 +0200
committerClément Bœsch <ubitux@gmail.com>2013-04-19 13:15:54 +0200
commit380cfce2b2138a0513f7c054134458b3b4c92fd4 (patch)
tree5c61821c85eccd7dbdb57ffbcbb881320670c8f1 /libavfilter/vf_subtitles.c
parent6189ff3679ab479ebfdafef160ed59cc631e445a (diff)
downloadffmpeg-380cfce2b2138a0513f7c054134458b3b4c92fd4.tar.gz
lavc: add AV_CODEC_PROP_TEXT_SUB.
CC are not marked. Also allow potential mixed types later.
Diffstat (limited to 'libavfilter/vf_subtitles.c')
-rw-r--r--libavfilter/vf_subtitles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c
index aaa8942615..10f07a48a5 100644
--- a/libavfilter/vf_subtitles.c
+++ b/libavfilter/vf_subtitles.c
@@ -302,7 +302,7 @@ static av_cold int init_subtitles(AVFilterContext *ctx)
return AVERROR(EINVAL);
}
dec_desc = avcodec_descriptor_get(dec_ctx->codec_id);
- if (dec_desc && (dec_desc->props & AV_CODEC_PROP_BITMAP_SUB)) {
+ if (dec_desc && !(dec_desc->props & AV_CODEC_PROP_TEXT_SUB)) {
av_log(ctx, AV_LOG_ERROR,
"Only text based subtitles are currently supported\n");
return AVERROR_PATCHWELCOME;