]> git.sesse.net Git - vlc/commitdiff
avcodec: set absolute/ephemer comments/values correctly
authorIlkka Ollakka <ileoo@videolan.org>
Sat, 27 Sep 2014 13:44:24 +0000 (16:44 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Fri, 5 Dec 2014 09:43:08 +0000 (11:43 +0200)
modules/codec/avcodec/subtitle.c

index fa476f0c778e332701bc0188d6ed218c67a63d0f..43882d0f6ff6f3c1074d650ba04baffd4fea2261 100644 (file)
@@ -243,8 +243,8 @@ static subpicture_t *ConvertSubtitle(decoder_t *dec, AVSubtitle *ffsub, mtime_t
     //        pts, ffsub->start_display_time, ffsub->end_display_time);
     spu->i_start    = pts + ffsub->start_display_time * INT64_C(1000);
     spu->i_stop     = pts + ffsub->end_display_time * INT64_C(1000);
-    spu->b_absolute = true; /* FIXME How to set it right ? */
-    spu->b_ephemer  = true; /* FIXME How to set it right ? */
+    spu->b_absolute = true; /* We have offset and size for subtitle */
+    spu->b_ephemer  = false; /* We only show subtitle for i_stop time only */
 
     if (avctx->coded_width != 0 && avctx->coded_height != 0) {
         spu->i_original_picture_width = avctx->coded_width;