summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-06-22 19:12:00 +0200
committerJohns <johns98@gmx.net>2012-06-22 19:12:00 +0200
commited1e16dccf4f1fa6e3b8e173f78acecd79c9d712 (patch)
tree72da6acd54c420215fbe1a34d2b751a56da2877d
parentda9886e9f10388cb459d33a5419abd310e4211ca (diff)
downloadvdr-plugin-softhddevice-ed1e16dccf4f1fa6e3b8e173f78acecd79c9d712.tar.gz
vdr-plugin-softhddevice-ed1e16dccf4f1fa6e3b8e173f78acecd79c9d712.tar.bz2
Removed warnings and old code.
-rw-r--r--softhddev.c28
1 files changed, 4 insertions, 24 deletions
diff --git a/softhddev.c b/softhddev.c
index 28f72c9..b45b198 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -880,7 +880,9 @@ static int TsDemuxer(TsDemux * tsdx, const uint8_t * data, int size)
p = data;
while (size >= TS_PACKET_SIZE) {
+#ifdef DEBUG
int pid;
+#endif
int payload;
if (p[0] != TS_PACKET_SYNC) {
@@ -894,11 +896,11 @@ static int TsDemuxer(TsDemux * tsdx, const uint8_t * data, int size)
// FIXME: kill all buffers
goto next_packet;
}
-
+#ifdef DEBUG
pid = (p[1] & 0x1F) << 8 | p[2];
Debug(4, "tsdemux: PID: %#04x%s%s\n", pid, p[1] & 0x40 ? " start" : "",
p[3] & 0x10 ? " payload" : "");
-
+#endif
// skip adaptation field
switch (p[3] & 0x30) { // adaption field
case 0x00: // reserved
@@ -1550,28 +1552,6 @@ int VideoDecodeInput(void)
avpkt->size = avpkt->stream_index;
avpkt->stream_index = 0;
- if (0) {
- static int done;
-
- if (done < 2) {
- int fildes;
- int who_designed_this_is____;
-
- if (done == 0)
- fildes =
- open("frame0.pes", O_WRONLY | O_TRUNC | O_CREAT, 0666);
- else if (done == 1)
- fildes =
- open("frame1.pes", O_WRONLY | O_TRUNC | O_CREAT, 0666);
- else
- fildes =
- open("frame2.pes", O_WRONLY | O_TRUNC | O_CREAT, 0666);
- done++;
- who_designed_this_is____ = write(fildes, avpkt->data, avpkt->size);
- close(fildes);
- }
- }
-
if (last_codec_id == CODEC_ID_MPEG2VIDEO) {
FixPacketForFFMpeg(MyVideoDecoder, avpkt);
} else {