changeset 19240:77d29dd9b08e

ptslen was set to 5 even when no pts==0
author nicodvb
date Sat, 29 Jul 2006 16:21:14 +0000
parents 2afa6444d35f
children 832945beef9f
files libmpdemux/mpeg_packetizer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/mpeg_packetizer.c	Sat Jul 29 16:08:59 2006 +0000
+++ b/libmpdemux/mpeg_packetizer.c	Sat Jul 29 16:21:14 2006 +0000
@@ -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;