[FFmpeg-cvslog] avcodec/pgssubdec: fix end display time
John Stebbins
git at videolan.org
Mon Jun 30 18:10:41 CEST 2014
ffmpeg | branch: master | John Stebbins <stebbins at jetheaddev.com> | Wed Jun 18 13:38:36 2014 -0700| [0c911c8fbc871d9368b4c172300197adc4b06991] | committer: Michael Niedermayer
avcodec/pgssubdec: fix end display time
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0c911c8fbc871d9368b4c172300197adc4b06991
---
libavcodec/pgssubdec.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c
index f353c4c..b06da7a 100644
--- a/libavcodec/pgssubdec.c
+++ b/libavcodec/pgssubdec.c
@@ -422,7 +422,10 @@ static int display_end_segment(AVCodecContext *avctx, void *data,
return 1;
sub->start_display_time = 0;
- sub->end_display_time = 20000;
+ // There is no explicit end time for PGS subtitles. The end time
+ // is defined by the start of the next sub which may contain no
+ // objects (i.e. clears the previous sub)
+ sub->end_display_time = UINT32_MAX;
sub->format = 0;
sub->num_rects = ctx->presentation.object_count;
More information about the ffmpeg-cvslog
mailing list