Commit 0c911c8f authored by John Stebbins's avatar John Stebbins Committed by Michael Niedermayer

avcodec/pgssubdec: fix end display time

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 066a4819
...@@ -422,7 +422,10 @@ static int display_end_segment(AVCodecContext *avctx, void *data, ...@@ -422,7 +422,10 @@ static int display_end_segment(AVCodecContext *avctx, void *data,
return 1; return 1;
sub->start_display_time = 0; 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->format = 0;
sub->num_rects = ctx->presentation.object_count; sub->num_rects = ctx->presentation.object_count;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment