[MPlayer-cvslog] r37365 - trunk/sub/spudec.c
reimar
subversion at mplayerhq.hu
Mon Feb 2 22:41:47 CET 2015
Author: reimar
Date: Mon Feb 2 22:41:46 2015
New Revision: 37365
Log:
spudec.c: Remove overflow checks.
Should fix trac issue #2224.
Modified:
trunk/sub/spudec.c
Modified: trunk/sub/spudec.c
==============================================================================
--- trunk/sub/spudec.c Mon Feb 2 21:02:05 2015 (r37364)
+++ trunk/sub/spudec.c Mon Feb 2 22:41:46 2015 (r37365)
@@ -1429,9 +1429,12 @@ void spudec_packet_send(void *spu, packe
{
packet->start_pts = 0;
packet->end_pts = 0x7fffffff;
- if (pts != MP_NOPTS_VALUE && pts < 0xffffffffu / 90000)
+ // Note: valid timestamps from e.g. DVB subtitles can
+ // overflow. Just ignoring the overflow seems to work
+ // best for now, but should be fixed properly at some point.
+ if (pts != MP_NOPTS_VALUE)
packet->start_pts = pts * 90000;
- if (endpts != MP_NOPTS_VALUE && endpts < 0xffffffffu / 90000)
+ if (endpts != MP_NOPTS_VALUE)
packet->end_pts = endpts * 90000;
spudec_queue_packet(spu, packet);
}
More information about the MPlayer-cvslog
mailing list