summaryrefslogtreecommitdiff
path: root/libavcodec/dvbsub_parser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-06-02 02:55:30 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-06-02 02:55:30 +0000
commitcb63a4b37ccd33a731b4a3291b7cc376603569ad (patch)
treeacc65120225a075baa56ea09957e3521605f636b /libavcodec/dvbsub_parser.c
parent406113721f53bc85aad006b4247db355f043c211 (diff)
Simplify parser core.
Originally committed as revision 13613 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dvbsub_parser.c')
-rw-r--r--libavcodec/dvbsub_parser.c6
1 files changed, 3 insertions, 3 deletions
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;
}