[FFmpeg-cvslog] lavc: correctly set AVSubtitle format for text based subtitles.

Clément Bœsch git at videolan.org
Mon Dec 31 10:10:56 CET 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Mon Dec 31 10:08:27 2012 +0100| [72ff8ee158c72947a369745d95c0703e39f3a61b] | committer: Clément Bœsch

lavc: correctly set AVSubtitle format for text based subtitles.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=72ff8ee158c72947a369745d95c0703e39f3a61b
---

 libavcodec/utils.c |    1 +
 1 file changed, 1 insertion(+)

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) {



More information about the ffmpeg-cvslog mailing list