diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-01-05 11:06:31 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-02-17 11:59:24 +0100 |
commit | 8732271e4025ed4198055686228a62c1d4f1a8c7 (patch) | |
tree | 44aa1e6e109ce3de7a5ec8e0eccaf8fbeccc840b /libavcodec/utils.c | |
parent | 7ca2f8b1130bd3db86a6e1bf82493abe25b751dd (diff) |
lavc: mark bitmap based subtitles codecs as such.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index f55d378a03..7e753ac407 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1872,7 +1872,7 @@ int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, sub->pts = av_rescale_q(avpkt->pts, avctx->pkt_timebase, AV_TIME_BASE_Q); ret = avctx->codec->decode(avctx, sub, got_sub_ptr, &tmp); - sub->format = sub->num_rects && sub->rects[0]->ass; + sub->format = !(avctx->codec_descriptor->props & AV_CODEC_PROP_BITMAP_SUB); avctx->pkt = NULL; if (did_split) { |