# HG changeset patch # User nicodvb # Date 1200216883 0 # Node ID a721f266b21b5c15e2149c1686cddec55bfd6385 # Parent fcac7e2a38fc5d13b10fa89fcd332d7bf50e7c67 moved pes_header from file-static to send_mpeg_pes_packet_ll() diff -r fcac7e2a38fc -r a721f266b21b libmpdemux/mpeg_packetizer.c --- 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);