mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-02 03:06:28 +02:00
lavc: correctly set AVSubtitle format for text based subtitles.
This commit is contained in:
parent
e3c25860dc
commit
72ff8ee158
@ -1841,6 +1841,7 @@ int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub,
|
|||||||
sub->pts = av_rescale_q(avpkt->pts,
|
sub->pts = av_rescale_q(avpkt->pts,
|
||||||
avctx->pkt_timebase, AV_TIME_BASE_Q);
|
avctx->pkt_timebase, AV_TIME_BASE_Q);
|
||||||
ret = avctx->codec->decode(avctx, sub, got_sub_ptr, &tmp);
|
ret = avctx->codec->decode(avctx, sub, got_sub_ptr, &tmp);
|
||||||
|
sub->format = sub->num_rects && sub->rects[0]->ass;
|
||||||
|
|
||||||
avctx->pkt = NULL;
|
avctx->pkt = NULL;
|
||||||
if (did_split) {
|
if (did_split) {
|
||||||
|
Loading…
Reference in New Issue
Block a user