Index: /libmpc/trunk/libmpcdec/mpc_demux.c
===================================================================
--- /libmpc/trunk/libmpcdec/mpc_demux.c	(revision 304)
+++ /libmpc/trunk/libmpcdec/mpc_demux.c	(revision 305)
@@ -367,5 +367,4 @@
 {
 	mpc_bits_reader r;
-	int pos = 0;
 	if (d->si.stream_version >= 8) {
 		i->is_key_frame = MPC_FALSE;
@@ -380,5 +379,4 @@
 			mpc_demux_fill(d, 11, 0); // max header block size
 			mpc_bits_get_block(&d->bits_reader, &b);
-			pos = mpc_demux_pos(d) >> 3;
 			while( memcmp(b.key, "AP", 2) != 0 ) { // scan all blocks until audio
 				if (b.key[0] < 65 || b.key[0] > 90 || b.key[1] < 65 || b.key[1] > 90
@@ -425,6 +423,5 @@
 error:
 		i->bits = -1; // we pretend it's end of file
-		// return MPC_STATUS_INVALIDSV;
-		return pos;
+		return MPC_STATUS_INVALIDSV;
 }
 
