Index: mppenc/branches/r2d/libmpcenc/encode_sv7.c
===================================================================
--- mppenc/branches/r2d/libmpcenc/encode_sv7.c	(revision 76)
+++ mppenc/branches/r2d/libmpcenc/encode_sv7.c	(revision 77)
@@ -26,4 +26,8 @@
 void       Init_Huffman_Encoder_SV7   ( void );
 
+void   Klemm ( void );
+
+void   Init_Skalenfaktoren             ( void );
+
 // huffsv7.c
 extern Huffman_t         HuffHdr  [10];         // contains tables for SV7-header
@@ -56,7 +60,15 @@
 // initialize SV7
 void
-Init_SV7 ( void )
+Init_SV7 ( mpc_encoder_t * e )
 {
     Init_Huffman_Encoder_SV7 ();
+	Init_Skalenfaktoren ();
+	Klemm    ();
+
+	e->dword = 0;
+	e->filled = 32;
+	e->Zaehler = 0;
+	e->BufferedBits = 0;
+	e->Overflows = 0;
 }
 
@@ -147,5 +159,5 @@
 
 static void
-test ( const unsigned int* const Res, const int* q )
+test ( const int* const Res, const unsigned int* q )
 {
 #if 0
