Commit 2cebd17e authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/pgssubdec: Fix input pts

Fixes part of Ticket2516
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 15e933b7
......@@ -638,7 +638,7 @@ static int decode(AVCodecContext *avctx, void *data, int *data_size,
ret = parse_object_segment(avctx, buf, segment_length);
break;
case PRESENTATION_SEGMENT:
ret = parse_presentation_segment(avctx, buf, segment_length, avpkt->pts);
ret = parse_presentation_segment(avctx, buf, segment_length, ((AVSubtitle*)(data))->pts);
break;
case WINDOW_SEGMENT:
/*
......
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