git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3c2586
)
lavc: correctly set AVSubtitle format for text based subtitles.
author
Clément Bœsch
<ubitux@gmail.com>
Mon, 31 Dec 2012 09:08:27 +0000
(10:08 +0100)
committer
Clément Bœsch
<ubitux@gmail.com>
Mon, 31 Dec 2012 09:08:27 +0000
(10:08 +0100)
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
4b6f2ed
..
918954a
100644
(file)
--- 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) {