[FFmpeg-devel] [PATCH 1/4] lavc: correctly set AVSubtitle format for text based subtitles.
Clément Bœsch
ubitux at gmail.com
Tue Nov 27 21:48:55 CET 2012
---
libavcodec/utils.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 32bda51..a6e92c8 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1883,6 +1883,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) {
--
1.8.0.1
More information about the ffmpeg-devel
mailing list