[MPlayer-cvslog] r19245 - trunk/libmpdemux/mpeg_packetizer.c

nicodvb subversion at mplayerhq.hu
Sat Jul 29 18:21:14 CEST 2006


Author: nicodvb
Date: Sat Jul 29 18:21:14 2006
New Revision: 19245

Modified:
   trunk/libmpdemux/mpeg_packetizer.c

Log:
ptslen was set to 5 even when no pts==0

Modified: trunk/libmpdemux/mpeg_packetizer.c
==============================================================================
--- trunk/libmpdemux/mpeg_packetizer.c	(original)
+++ trunk/libmpdemux/mpeg_packetizer.c	Sat Jul 29 18:21:14 2006
@@ -49,7 +49,7 @@
 send_mpeg_pes_packet (unsigned char *data, int len, int id, uint64_t pts,
                       int type, int my_write (unsigned char *data, int len))
 {
-  int ptslen = 5;
+  int ptslen = (pts ? 5 : 0);
   int n = 0;
   int idx, plen;
   int hdr;



More information about the MPlayer-cvslog mailing list