blob: a09c201590bfa977a30e73a4115f631770c098de [file] [log] [blame]
Sylvain Munautb1a83582010-01-03 00:00:47 +01001Index: skeletons/per_support.c
2===================================================================
3--- skeletons/per_support.c (revision 1407)
4+++ skeletons/per_support.c (working copy)
5@@ -336,7 +336,12 @@
6 buf[3] = bits;
7 else {
8 ASN_DEBUG("->[PER out split %d]", obits);
9+#if 1 // Dieter
10+ po->nboff -= obits; // undo incrementation from a few lines above
11+ per_put_few_bits(po, bits >> (obits - 24), 24); // shift according to the rest of the bits
12+#else
13 per_put_few_bits(po, bits >> 8, 24);
14+#endif
15 per_put_few_bits(po, bits, obits - 24);
16 ASN_DEBUG("<-[PER out split %d]", obits);
17 }