diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-12-31 10:08:27 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-12-31 10:08:27 +0100 |
commit | 72ff8ee158c72947a369745d95c0703e39f3a61b (patch) | |
tree | 9336392765a2ec47924384a5e5128690ecd62169 /libavcodec/utils.c | |
parent | e3c25860dc6e3be6582f6a8416eaaa6757611c09 (diff) | |
download | ffmpeg-streaming-72ff8ee158c72947a369745d95c0703e39f3a61b.zip ffmpeg-streaming-72ff8ee158c72947a369745d95c0703e39f3a61b.tar.gz |
lavc: correctly set AVSubtitle format for text based subtitles.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 4b6f2ed..918954a 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1841,6 +1841,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; avctx->pkt = NULL; if (did_split) { |