diff options
author | wm4 <wm4@nowhere> | 2012-08-01 17:07:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-01 17:07:35 +0200 |
commit | c92538dfaa5eb7e9b2773f158cbb310545116abe (patch) | |
tree | 4b1ab99a17cbead6ff1b7bf9714642540cd66ce4 /libmpdemux/mpeg_packetizer.c | |
parent | 7175f178de72bb4f31cacd79b395a14beaf2f65a (diff) | |
download | mpv-c92538dfaa5eb7e9b2773f158cbb310545116abe.tar.bz2 mpv-c92538dfaa5eb7e9b2773f158cbb310545116abe.tar.xz |
Remove dead code
This was done with the help of callcatcher [1]. Only functions which
are statically known to be unused are removed.
Some unused functions are not removed yet, because they might be needed
in the near future (such as open_output_stream for the encode branch).
There is one user visible change: the --subcc option did nothing, and is
removed with this commit.
[1] http://www.skynet.ie/~caolan/Packages/callcatcher.html
Diffstat (limited to 'libmpdemux/mpeg_packetizer.c')
-rw-r--r-- | libmpdemux/mpeg_packetizer.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/libmpdemux/mpeg_packetizer.c b/libmpdemux/mpeg_packetizer.c index 0b4b1fa8d5..82e688df12 100644 --- a/libmpdemux/mpeg_packetizer.c +++ b/libmpdemux/mpeg_packetizer.c @@ -145,26 +145,3 @@ send_mpeg_pes_packet (unsigned char *data, int len, int id, uint64_t pts, { return send_mpeg_pes_packet_ll(data, len, id, pts, type, NULL, 0, 0, my_write); } - - -/* Send MPEG <type> PS packet */ -int -send_mpeg_ps_packet(unsigned char *data, int len, int id, uint64_t pts, int type, - int my_write (const unsigned char *data, int len)) -{ - if(type == 2) - my_write (ps2_header, sizeof (ps2_header)); - else - my_write (ps1_header, sizeof (ps1_header)); - return send_mpeg_pes_packet (data, len, id, pts, type, my_write); -} - -/* Send MPEG 2 LPCM packet */ -int -send_mpeg_lpcm_packet(unsigned char* data, int len, - int id, uint64_t pts, int freq_id, - int my_write (const unsigned char *data, int len)) -{ - unsigned char header[7] = {0xA0, 0x07, 0x00, 0x04, 0x0C, 1 | (freq_id << 4), 0x80}; - return send_mpeg_pes_packet_ll(data, len, 0xBD, pts, 2, header, sizeof(header), 1, my_write); -} |