[vlc-commits] avcodec: set absolute/ephemer comments/values correctly
Ilkka Ollakka
git at videolan.org
Fri Dec 5 10:50:55 CET 2014
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Sep 27 16:44:24 2014 +0300| [b972fe8b6aa180ba0b37057f04a43a422eda895c] | committer: Ilkka Ollakka
avcodec: set absolute/ephemer comments/values correctly
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b972fe8b6aa180ba0b37057f04a43a422eda895c
---
modules/codec/avcodec/subtitle.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/avcodec/subtitle.c b/modules/codec/avcodec/subtitle.c
index fa476f0..43882d0 100644
--- a/modules/codec/avcodec/subtitle.c
+++ b/modules/codec/avcodec/subtitle.c
@@ -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;
More information about the vlc-commits
mailing list