summaryrefslogtreecommitdiff
path: root/libavcodec/pgssubdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-12 00:40:12 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-12 01:09:51 +0200
commit2cebd17e3f87c4f5706ccbb5613c658b5f39609a (patch)
tree9716cf70a3c3ebada1cdffc99e987da56db31b38 /libavcodec/pgssubdec.c
parent15e933b77365b20e3365b1de5b806493494a709f (diff)
avcodec/pgssubdec: Fix input pts
Fixes part of Ticket2516 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pgssubdec.c')
-rw-r--r--libavcodec/pgssubdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c
index 4b07b6e8a5..c6331692a0 100644
--- a/libavcodec/pgssubdec.c
+++ b/libavcodec/pgssubdec.c
@@ -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:
/*