diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-13 09:34:43 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-13 09:34:43 +0000 |
commit | 194c1219dbe5a28fe4bacfa14cf0a5879734af5d (patch) | |
tree | b2a5d132c4f32bb8e9696146af576cf11779139b | |
parent | 1045dcfb0071a966fb71f20bb85bfcc0b5d18b48 (diff) | |
download | mpv-194c1219dbe5a28fe4bacfa14cf0a5879734af5d.tar.bz2 mpv-194c1219dbe5a28fe4bacfa14cf0a5879734af5d.tar.xz |
moved pes_header from file-static to send_mpeg_pes_packet_ll()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25704 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/mpeg_packetizer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libmpdemux/mpeg_packetizer.c b/libmpdemux/mpeg_packetizer.c index 6f198abc11..9fa9383407 100644 --- a/libmpdemux/mpeg_packetizer.c +++ b/libmpdemux/mpeg_packetizer.c @@ -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 *data, int len, int id, uint64_t pts, 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); |