diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-06-02 02:55:30 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-06-02 02:55:30 +0000 |
commit | cb63a4b37ccd33a731b4a3291b7cc376603569ad (patch) | |
tree | acc65120225a075baa56ea09957e3521605f636b /libavcodec/dvbsub_parser.c | |
parent | 406113721f53bc85aad006b4247db355f043c211 (diff) | |
download | ffmpeg-cb63a4b37ccd33a731b4a3291b7cc376603569ad.tar.gz |
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.c | 6 |
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; } |