Mercurial > libavcodec.hg
diff dvbsub_parser.c @ 6977:de032bcdeff9 libavcodec
Simplify parser core.
| author | michael |
|---|---|
| date | Mon, 02 Jun 2008 02:55:30 +0000 |
| parents | 48759bfbd073 |
| children | 04423b2f6e0b |
line wrap: on
line diff
--- a/dvbsub_parser.c Mon Jun 02 02:54:46 2008 +0000 +++ b/dvbsub_parser.c Mon Jun 02 02:55:30 2008 +0000 @@ -80,7 +80,7 @@ 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 @@ 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; }
