changeset 25676:a721f266b21b

moved pes_header from file-static to send_mpeg_pes_packet_ll()
author nicodvb
date Sun, 13 Jan 2008 09:34:43 +0000
parents fcac7e2a38fc
children b3f780273cb1
files libmpdemux/mpeg_packetizer.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/mpeg_packetizer.c	Sun Jan 13 00:10:02 2008 +0000
+++ b/libmpdemux/mpeg_packetizer.c	Sun Jan 13 09:34:43 2008 +0000
@@ -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 @@
   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);