Browse Source

lavc: correctly set AVSubtitle format for text based subtitles.

tags/n1.1
Clément Bœsch 13 years ago
parent
commit
72ff8ee158
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/utils.c

+ 1
- 0
libavcodec/utils.c View File

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


Loading…
Cancel
Save