summaryrefslogtreecommitdiff
path: root/libavcodec/pgssubdec.c
diff options
context:
space:
mode:
authorJohn Stebbins <stebbins@jetheaddev.com>2014-06-18 13:38:36 -0700
committerMichael Niedermayer <michaelni@gmx.at>2014-06-30 17:33:53 +0200
commit0c911c8fbc871d9368b4c172300197adc4b06991 (patch)
treef1045146c1b6a6a514dc6040ac28aeea9282af86 /libavcodec/pgssubdec.c
parent066a4819cc1b5a7990daa74a5d3825ad783e7acf (diff)
avcodec/pgssubdec: fix end display time
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pgssubdec.c')
-rw-r--r--libavcodec/pgssubdec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c
index f353c4c17c..b06da7a652 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;