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

nicodvb subversion at mplayerhq.hu
Sun Jan 13 10:34:43 CET 2008


Author: nicodvb
Date: Sun Jan 13 10:34:43 2008
New Revision: 25704

Log:
moved pes_header from file-static to send_mpeg_pes_packet_ll()

Modified:
   trunk/libmpdemux/mpeg_packetizer.c

Modified: trunk/libmpdemux/mpeg_packetizer.c
==============================================================================
--- trunk/libmpdemux/mpeg_packetizer.c	(original)
+++ trunk/libmpdemux/mpeg_packetizer.c	Sun Jan 13 10:34:43 2008
@@ -31,8 +31,6 @@
 
 #define PES_MAX_SIZE 2048
 
-static unsigned char pes_header[PES_MAX_SIZE];
-
 static const unsigned char ps2_header[] = {
   0x00, 0x00, 0x01, 0xba, 0x44, 0x00, 0x04, 0x00,
   0x04, 0x01, 0x01, 0x86, 0xa3, 0xf8
@@ -54,6 +52,7 @@ send_mpeg_pes_packet_ll(unsigned char *d
   int n = 0;
   int idx, plen;
   int hdr;
+  unsigned char pes_header[PES_MAX_SIZE];
 
   mp_msg (MSGT_HEADER, MSGL_DBG2,
           "MPEG%d PES packet: 0x%x => %lu   \n", type, id, pts);



More information about the MPlayer-cvslog mailing list