From cb63a4b37ccd33a731b4a3291b7cc376603569ad Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 2 Jun 2008 02:55:30 +0000 Subject: Simplify parser core. Originally committed as revision 13613 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dvbsub_parser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec/dvbsub_parser.c') diff --git a/libavcodec/dvbsub_parser.c b/libavcodec/dvbsub_parser.c index 459f6cccd6..0a83de39ef 100644 --- a/libavcodec/dvbsub_parser.c +++ b/libavcodec/dvbsub_parser.c @@ -80,7 +80,7 @@ static int dvbsub_parse(AVCodecParserContext *s, s->fetch_timestamp = 1; - if (s->last_pts != s->pts && s->last_pts != AV_NOPTS_VALUE) /* Start of a new packet */ + if (s->last_pts != s->pts && s->pts != AV_NOPTS_VALUE) /* Start of a new packet */ { if (pc->packet_index != pc->packet_start) { @@ -175,8 +175,8 @@ static int dvbsub_parse(AVCodecParserContext *s, pc->packet_start = *poutbuf_size; } - if (s->last_pts == AV_NOPTS_VALUE) - s->last_pts = s->pts; + if (s->pts == AV_NOPTS_VALUE) + s->pts = s->last_pts; return buf_size; } -- cgit v1.2.3