     import flash.utils.Endian;    
     import flash.utils.IDataInput;
     import flash.utils.IDataOutput;
+    //import com.hurlant.util.Hex;
 
     /**
      * NALU processing utilities.

            {
                var ppsLength:uint = ppsList[i].length;
                //trace("PPS length #" + i + " is " + ppsLength + "   " + Hex.fromArray(ppsList[i], true));
                avcc.position = cursor;
                ppsList[i].position = 0;
                avcc.writeShort(ppsLength);

        private static function sortSPS(a:ByteArray, b:ByteArray):int
        {
            var ourEg:ExpGolomb = new ExpGolomb(a);
            ourEg.readBits(8);
            ourEg.readBits(24);
            var Id_a:int = ourEg.readUE();

            ourEg = new ExpGolomb(b);
            ourEg.readBits(8);
            ourEg.readBits(24);
            var Id_b:int = ourEg.readUE();

            return Id_a - Id_b;
